From 8fcbfbee350957ee8b6d3bcfc4a0287bc7976d32 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 10 Apr 2023 14:51:58 +0200 Subject: Fix(system/services/nix): Add templates to the args --- flake/nixosConfigurations/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'flake/nixosConfigurations/default.nix') diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix index 2e0e01fd..360728e1 100644 --- a/flake/nixosConfigurations/default.nix +++ b/flake/nixosConfigurations/default.nix @@ -14,6 +14,7 @@ user_js, neovim_config, snap-sync, + templates, # modules impermanence, home-manager, @@ -65,11 +66,14 @@ impermanence.nixosModules.impermanence impermanenceConfig ]; - nixpkgs-as-input = nixpkgs; + defaultSpecialArgs = { + nixpkgs-as-input = nixpkgs; + inherit templates; + }; in { tiamat = nixpkgs.lib.nixosSystem { inherit system pkgs; - specialArgs = {inherit nixpkgs-as-input;}; + specialArgs = defaultSpecialArgs; modules = [ ../../hosts/tiamat/configuration.nix @@ -79,7 +83,7 @@ in { mammun = nixpkgs.lib.nixosSystem { inherit system pkgs; - specialArgs = {inherit nixpkgs-as-input;}; + specialArgs = defaultSpecialArgs; modules = [ ../../hosts/mammun/configuration.nix @@ -88,7 +92,7 @@ in { }; lahmu = nixpkgs.lib.nixosSystem { inherit system pkgs; - specialArgs = {inherit nixpkgs-as-input;}; + specialArgs = defaultSpecialArgs; modules = [ ../../hosts/lahmu/configuration.nix @@ -96,7 +100,7 @@ in { ++ defaultModules; }; spawn = nixpkgs.lib.nixosSystem { - specialArgs = {inherit nixpkgs-as-input;}; + specialArgs = defaultSpecialArgs; modules = [../../hosts/spawn/configuration.nix]; }; } -- cgit 1.4.1