mew
This commit is contained in:
parent
99cf1ebd0e
commit
f37af0088b
2 changed files with 18 additions and 8 deletions
11
flake.nix
11
flake.nix
|
@ -67,17 +67,22 @@
|
||||||
};
|
};
|
||||||
} // colmenaHive.nodes;
|
} // colmenaHive.nodes;
|
||||||
|
|
||||||
homeConfigurations.sammy =
|
homeConfigurations =
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
in
|
mkHome = { user ? "sammy", hostname ? null }:
|
||||||
lib.homeManagerConfiguration {
|
lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [ ./modules/users/sammy.nix ];
|
modules = [ ./modules/users/${user}.nix ] ++ lib.optional (!isNull hostname) ./modules/home/hosts/${hostname}.nix;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
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