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"; };
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 in
lib.homeManagerConfiguration { {
inherit pkgs; sammy = mkHome { };
modules = [ ./modules/users/sammy.nix ]; "sammy@chansey" = mkHome { hostname = "chansey"; };
extraSpecialArgs = {
inherit inputs outputs;
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
};
}; };
}; };
} }

View file

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