Skip to content

Commit

Permalink
nixModule for home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
number5 committed Jun 10, 2024
1 parent af5bf65 commit 4fb3df5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions parts/system_configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
configs = builtins.mapAttrs (_: config: config.finalSystem) cfg;

packages = builtins.attrValues (builtins.mapAttrs (_: config: config.packageModule) cfg);

vars = {
stateVersion = "23.11";
};

specialArgs = {
inherit vars;
flake = {
inherit self inputs;
};
};

in {
_file = ./system_configs.nix;

Expand Down Expand Up @@ -94,6 +106,15 @@ in {
{documentation.man.generateCaches = true;}
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = false;
extraSpecialArgs = specialArgs;
# sharedModules = self.lib.hm-modules;
};
}
]
++ config.modules
++ builtins.attrValues {
Expand Down

0 comments on commit 4fb3df5

Please sign in to comment.