mew
This commit is contained in:
parent
99cf1ebd0e
commit
f37af0088b
2 changed files with 18 additions and 8 deletions
21
flake.nix
21
flake.nix
|
@ -67,17 +67,22 @@
|
|||
};
|
||||
} // colmenaHive.nodes;
|
||||
|
||||
homeConfigurations.sammy =
|
||||
homeConfigurations =
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
mkHome = { user ? "sammy", hostname ? null }:
|
||||
lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./modules/users/${user}.nix ] ++ lib.optional (!isNull hostname) ./modules/home/hosts/${hostname}.nix;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./modules/users/sammy.nix ];
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||
};
|
||||
{
|
||||
sammy = mkHome { };
|
||||
"sammy@chansey" = mkHome { hostname = "chansey"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
5
modules/home/hosts/chansey.nix
Normal file
5
modules/home/hosts/chansey.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }: {
|
||||
programs.ssh.includes = [
|
||||
"./famedly-config"
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue