diff --git a/delft/flake.nix b/delft/flake.nix index 7e076aa2..c79f1d9b 100644 --- a/delft/flake.nix +++ b/delft/flake.nix @@ -5,26 +5,25 @@ outputs = flakes @ { self, nixpkgs, nix-netboot-serve }: let inherit (nixpkgs) lib; in { - nixopsConfigurations.default = - { inherit nixpkgs; } - // import ./network.nix flakes; + nixosConfigurations.eris = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + + modules = [ + ./eris.nix + flakes.nix-netboot-serve.nixosModules.nix-netboot-serve + ]; + }; - /* - nixosConfigurations = builtins.removeAttrs (lib.mapAttrs (name: value: nixpkgs.lib.nixosSystem { + nixosConfigurations.haumea = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + modules = [ - value - self.nixopsConfigurations.default.defaults - { - # hack: this doesn't check deployment options properly, but - # is enough to have the deployment options ignored and allow - # evaluating individual config options. - options.deployment = lib.mkOption { - type = (nixpkgs.legacyPackages.x86_64-linux.formats.json {}).type; - }; - } + ./haumea.nix ]; - }) self.nixopsConfigurations.default) ["defaults"]; - */ + }; + + nixopsConfigurations.default = + { inherit nixpkgs; } + // import ./network.nix flakes; }; }