diff options
author | Soispha <soispha@vhack.eu> | 2023-04-10 13:16:11 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:30:14 +0200 |
commit | 16bb211bca74fb4ea22d9b5670d317c9366c0f79 (patch) | |
tree | 3bc3f7bd6680e08e6532ee503d99abbbed1674a2 | |
parent | Fix(host/tiamat): Do not use nixpkgs (diff) | |
download | nixos-config-16bb211bca74fb4ea22d9b5670d317c9366c0f79.tar.gz nixos-config-16bb211bca74fb4ea22d9b5670d317c9366c0f79.zip |
Fix(system/services/nix): Add nixpkgs to args
-rw-r--r-- | flake/nixosConfigurations/default.nix | 5 | ||||
-rw-r--r-- | system/services/nix/default.nix | 6 |
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; |