aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-01-18 11:45:18 +0100
committerKarel Kočí <cynerd@email.cz>2023-01-18 11:45:18 +0100
commit33bcefc45b4a8881310f77a2bbda466a8b0f466a (patch)
tree2940a4e7369e2234a10c969b8a87f126a3abeff5 /nixos
parent2a72895d7a7be71d6eefee193ce22e80718ee253 (diff)
downloadnixos-personal-33bcefc45b4a8881310f77a2bbda466a8b0f466a.tar.gz
nixos-personal-33bcefc45b4a8881310f77a2bbda466a8b0f466a.tar.bz2
nixos-personal-33bcefc45b4a8881310f77a2bbda466a8b0f466a.zip
lib: add my own library functions
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configurations.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/configurations.nix b/nixos/configurations.nix
index 24256b3..943b59a 100644
--- a/nixos/configurations.nix
+++ b/nixos/configurations.nix
@@ -18,6 +18,9 @@ with nixpkgs.lib; let
}
]
++ (optional (hasAttr "machine-${hostname}" self.nixosModules) self.nixosModules."machine-${hostname}");
+ specialArgs = {
+ lib = nixpkgs.lib.extend (prev: final: import ../lib prev);
+ };
genericSystem = {
system ? "x86_64-linux",
@@ -26,6 +29,7 @@ with nixpkgs.lib; let
${hostname} = nixpkgs.lib.nixosSystem {
system = system;
modules = (modules hostname) ++ extra_modules;
+ specialArgs = specialArgs;
};
};
amd64System = genericSystem {};
@@ -96,6 +100,7 @@ with nixpkgs.lib; let
nixpkgs = nixpkgs;
board = board;
modules = modules hostname;
+ override.specialArgs = specialArgs;
};
};
turrisMoxSystem = turrisSystem "mox";