home-manager: flake level nixos module deps

This commit is contained in:
Zynh Ludwig 2024-08-21 23:26:15 -07:00
parent 62b1d553f2
commit 24af078952
2 changed files with 7 additions and 2 deletions

View file

@ -98,7 +98,6 @@
security.polkit.enable = true; security.polkit.enable = true;
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs self; };
users = { "ravenshade" = import ./home.nix; }; users = { "ravenshade" = import ./home.nix; };
# backupFileExtension = "backup"; # backupFileExtension = "backup";
}; };

View file

@ -20,7 +20,7 @@ rec {
{ hostname, system }: { hostname, system }:
nameValuePair nameValuePair
hostname hostname
(nixosSystem { (nixosSystem rec {
pkgs = makePkgs system; pkgs = makePkgs system;
specialArgs = { inherit inputs self; }; specialArgs = { inherit inputs self; };
@ -28,6 +28,12 @@ rec {
../hosts/${hostname}/hardware-configuration.nix ../hosts/${hostname}/hardware-configuration.nix
../hosts/${hostname}/configuration.nix ../hosts/${hostname}/configuration.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
{
home-manager.extraSpecialArgs = {
inherit inputs self pkgs;
lib = pkgs.lib.extend (_: _: inputs.home-manager.lib);
};
}
]; ];
}); });
compileSystems = compileSystems =