This commit is contained in:
CherryKitten 2024-03-24 19:03:19 +01:00
parent 99cf1ebd0e
commit f37af0088b
Signed by: sammy
GPG key ID: 98D8F75FB0658276
2 changed files with 18 additions and 8 deletions

View file

@ -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"; };
};
}; };
} }

View file

@ -0,0 +1,5 @@
{ ... }: {
programs.ssh.includes = [
"./famedly-config"
];
}