about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake/nixosConfigurations/default.nix5
-rw-r--r--system/services/nix/default.nix6
2 files changed, 9 insertions, 2 deletions
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix
index d47c89aa..2e0e01fd 100644
--- a/flake/nixosConfigurations/default.nix
+++ b/flake/nixosConfigurations/default.nix
@@ -65,9 +65,11 @@
     impermanence.nixosModules.impermanence
     impermanenceConfig
   ];
+  nixpkgs-as-input = nixpkgs;
 in {
   tiamat = nixpkgs.lib.nixosSystem {
     inherit system pkgs;
+    specialArgs = {inherit nixpkgs-as-input;};
     modules =
       [
         ../../hosts/tiamat/configuration.nix
@@ -77,6 +79,7 @@ in {
 
   mammun = nixpkgs.lib.nixosSystem {
     inherit system pkgs;
+    specialArgs = {inherit nixpkgs-as-input;};
     modules =
       [
         ../../hosts/mammun/configuration.nix
@@ -85,6 +88,7 @@ in {
   };
   lahmu = nixpkgs.lib.nixosSystem {
     inherit system pkgs;
+    specialArgs = {inherit nixpkgs-as-input;};
     modules =
       [
         ../../hosts/lahmu/configuration.nix
@@ -92,6 +96,7 @@ in {
       ++ defaultModules;
   };
   spawn = nixpkgs.lib.nixosSystem {
+    specialArgs = {inherit nixpkgs-as-input;};
     modules = [../../hosts/spawn/configuration.nix];
   };
 }
diff --git a/system/services/nix/default.nix b/system/services/nix/default.nix
index 27ec7bd6..4549a8df 100644
--- a/system/services/nix/default.nix
+++ b/system/services/nix/default.nix
@@ -3,10 +3,12 @@
   config,
   lib,
   pkgs,
-  nixpkgs,
+  nixpkgs-as-input,
   templates,
   ...
-}: {
+}: let
+  nixpkgs = nixpkgs-as-input;
+in {
   nix = {
     package = pkgs.nixUnstable;