From a6b0f0a85db0d482bc5d5c6fc3fe81b0114dae95 Mon Sep 17 00:00:00 2001 From: Jonas Rabenstein Date: Mon, 6 Jan 2025 02:21:19 +0100 Subject: [PATCH] nixosConfiguration: do not use a list as namespace --- export/nixosConfigurations.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export/nixosConfigurations.nix b/export/nixosConfigurations.nix index 00665fe..0a82706 100644 --- a/export/nixosConfigurations.nix +++ b/export/nixosConfigurations.nix @@ -1,7 +1,7 @@ { nixosUsers ? {}, nixosGroups ? {}, nixosModules, hmModules ? { default = {}; }, ...}@flake: { ... }@inputs: { host, ... }@imports: let host' = name: snippets: let system = { namespace?"fbs42", nixpkgs?"nixpkgs" }: inputs.${nixpkgs}.lib.nixosSystem { - specialArgs = { inherit inputs flake; namespace = if builtins.isList namespace then namespace else [ namespace ]; }; + specialArgs = { inherit inputs flake namespace; }; modules = builtins.concatLists (map (base: builtins.attrValues (flake.lib.scan { base = "${base}/host/${name}"; })) flake.lib.schema.base) ++ [ { config.networking.hostName = name; } ] ++ [ nixosModules.default ]