Last active
December 27, 2021 09:10
-
-
Save kclejeune/1fba78976af73d4c4f03250b3fb33e74 to your computer and use it in GitHub Desktop.
home manager flake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "home manager system configurations"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | |
home-manager = { | |
url = "github:nix-community/home-manager/master"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
}; | |
outputs = inputs@{ self, nixpkgs, home-manager, ... }: { | |
homeConfigurations = { | |
server = home-manager.lib.homeManagerConfiguration rec { | |
system = "x86_64-linux"; | |
username = "username"; | |
homeDirectory = "/home/${username}"; | |
extraSpecialArgs = { inherit inputs; }; | |
configuration = { | |
imports = [ ./home.nix ]; | |
nixpkgs.overlays = [ | |
# overlays could go here if you wanted | |
]; | |
}; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment