This commit is contained in:
iFargle 2023-08-23 19:45:34 +09:00
parent 4a976e8776
commit c5bddbe161

View file

@ -2,13 +2,11 @@
# Helper function for generating home-manager configs
mkHome = { hostname, username, desktop ? null, platform ? "x86_64-linux" }: inputs.home-manager.lib.homeManagerConfiguration {
# pkgs = inputs.nixpkgs.legacyPackages.${platform};
pkgs = inputs.nixpkgs.${platform};
# pkgs = inputs.nixpkgs.${platform};
extraSpecialArgs = {
inherit inputs outputs desktop hostname platform username hmStateVersion;
};
modules = [
../home-manager
];
modules = [ ../home-manager ];
};
# Helper function for generating host configs
@ -18,9 +16,9 @@
};
modules = [
../nixos
inputs.sops-nix.nixosModules.sops # Handle secrets
inputs.lanzaboote.nixosModules.lanzaboote # SecureBoot Configuration
inputs.nur.nixosModules.nur # NixOS User Repository
inputs.sops-nix.nixosModules.sops # Handle secrets
inputs.lanzaboote.nixosModules.lanzaboote # SecureBoot Configuration
inputs.nur.nixosModules.nur # NixOS User Repository
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
};