diff --git a/flake.nix b/flake.nix index d544d90..b45458e 100644 --- a/flake.nix +++ b/flake.nix @@ -156,6 +156,8 @@ chaotic, ... } @ inputs: let + hostsData = import ./hosts.nix; + serversOnly = nixpkgs.lib.filterAttrs (n: v: v.type == "server") hostsData; mkDeployNode = hostname: arch: { inherit hostname; profiles.system = { @@ -165,14 +167,16 @@ }; }; in { - deploy.nodes = nixpkgs.lib.mapAttrs' ( - hostname: meta: let - arch = meta.arch; - in { - name = hostname; - value = mkDeployNode hostname arch; - } - ) (import ./hosts.nix); + deploy.nodes = + nixpkgs.lib.mapAttrs' ( + hostname: meta: let + arch = meta.arch; + in { + name = hostname; + value = mkDeployNode hostname arch; + } + ) + serversOnly; nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration { modules = [inputs.stylix.nixOnDroidModules.stylix ./hosts/andronix/configuration.nix]; diff --git a/hosts.nix b/hosts.nix index 3aa2c3e..44b6e13 100644 --- a/hosts.nix +++ b/hosts.nix @@ -20,9 +20,9 @@ arch = "aarch64-linux"; }; tyr = { - type = "client"; + type = "server"; arch = "x86_64-linux"; - extraModules = [./modules/servers/tyr]; + # extraModules = [./modules/servers/tyr]; }; ymir = { type = "client";