about summary refs log tree commit diff
path: root/nixosConfigurations/default.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-12-17 16:39:09 +0300
committerAzat Bahawi <azat@bahawi.net>2022-12-17 16:39:09 +0300
commit8f137c28230623259a964484adcf31fe00756594 (patch)
tree82bce6a13fda125087cf6d9dc80aa91d9230d6c4 /nixosConfigurations/default.nix
parent2022-11-20 (diff)
2022-12-17
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

Consider giving Nix/NixOS a try! <3