diff options
Diffstat (limited to '')
-rw-r--r-- | nixosConfigurations/default.nix (renamed from configurations/default.nix) | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/configurations/default.nix b/nixosConfigurations/default.nix index a488cf1..8ebeda4 100644 --- a/configurations/default.nix +++ b/nixosConfigurations/default.nix @@ -7,14 +7,23 @@ with lib; let modules ? [], configuration ? ./${name}, this ? my.configurations.${name}, + extraSpecialArgs ? { + localUsername = my.username; + localHostname = this.hostname; + }, }: nameValuePair name (nixosSystem { inherit (this) system; modules = - attrValues inputs.self.nixosModules - ++ modules + modules + ++ attrValues inputs.self.modules + ++ attrValues inputs.self.nixosModules ++ optional (configuration != null) (import configuration); - specialArgs = {inherit inputs lib this;}; + specialArgs = + { + inherit inputs lib this; + } + // extraSpecialArgs; }); in mapAttrs' mkConfiguration { @@ -46,7 +55,7 @@ in }; }; - # A beefy desktop PC: 7950x/rx6750xt/128GB. + # A beefy desktop: 7950x/rx6750xt/128GB. eonwe.modules = with inputs; [ nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-gpu-amd |