re-add init function for home manager
my stupid ass in b979657 thought that home-manager.nixosModules.home-manager was a function that returned a module instead of just a module (which is also a function but that's besides the point). i forgot to consider that the home-manager module adds a custom home-manager option set, nor did i realize that a flake module could be a plain attribute set.
This commit is contained in:
parent
ab7b0e1de5
commit
531445e1f0
23
flake.nix
23
flake.nix
@ -16,10 +16,13 @@
|
|||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
username = "nullbite";
|
username = "nullbite";
|
||||||
hmModule = inputs.home-manager.nixosModules.home-manager;
|
homeManagerModule = inputs.home-manager.nixosModules.home-manager;
|
||||||
hmModuleDefaults = {
|
homeManagerInit = user: module: {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager = {
|
||||||
home-manager.useUserPackages = true;
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users.${user} = module;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# for repl debugging via :lf .
|
# for repl debugging via :lf .
|
||||||
@ -39,9 +42,8 @@
|
|||||||
./system/fragments/opengl.nix
|
./system/fragments/opengl.nix
|
||||||
./system/gaming.nix
|
./system/gaming.nix
|
||||||
# ./system/hyprland.nix
|
# ./system/hyprland.nix
|
||||||
hmModule (hmModuleDefaults // {
|
homeManagerModule
|
||||||
home-manager.users."${username}" = import ./hosts/slab/home.nix;
|
(homeManagerInit username (import ./hosts/slab/home.nix))
|
||||||
})
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nullbox = lib.nixosSystem {
|
nullbox = lib.nixosSystem {
|
||||||
@ -52,11 +54,8 @@
|
|||||||
./system/plasma.nix
|
./system/plasma.nix
|
||||||
./system/fragments/hardware/nvidia-modeset.nix
|
./system/fragments/hardware/nvidia-modeset.nix
|
||||||
./system/gaming.nix
|
./system/gaming.nix
|
||||||
|
homeManagerModule
|
||||||
hmModule (hmModuleDefaults // {
|
(homeManagerInit username (import ./hosts/nullbox/home.nix))
|
||||||
home-manager.users."${username}" = import ./hosts/nullbox/home.nix;
|
|
||||||
})
|
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user