From 16bb211bca74fb4ea22d9b5670d317c9366c0f79 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 10 Apr 2023 13:16:11 +0200 Subject: Fix(system/services/nix): Add nixpkgs to args --- flake/nixosConfigurations/default.nix | 5 +++++ 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; -- cgit 1.4.1