diff options
author | Soispha <soispha@vhack.eu> | 2023-04-10 14:51:58 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:30:15 +0200 |
commit | 8fcbfbee350957ee8b6d3bcfc4a0287bc7976d32 (patch) | |
tree | e292d39acc59d2dffc6088626f427008e2d1cc26 | |
parent | Fix(system/services/nix): Add nixpkgs to args (diff) | |
download | nixos-config-8fcbfbee350957ee8b6d3bcfc4a0287bc7976d32.tar.gz nixos-config-8fcbfbee350957ee8b6d3bcfc4a0287bc7976d32.zip |
Fix(system/services/nix): Add templates to the args
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | flake/nixosConfigurations/default.nix | 14 |
2 files changed, 11 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix index d1837b7f..537c77d6 100644 --- a/flake.nix +++ b/flake.nix @@ -77,6 +77,7 @@ neovim_config, user_js, snap-sync, + templates, # my binaries strip_js_comments, shell-library, @@ -99,6 +100,7 @@ home-manager agenix impermanence + templates river_init_lesser yambar_memory yambar_cpu 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]; }; } |