delft: flake: add nixosConfigurations outputs for the core machines (currently eris doesn't work due to more nixops dependencies)
Pierre Bourdon committed
Jan 12, 2024 at 03:25 UTC
a078fbf608c930828afb27b97de9dbc92a6146b8
1 file changed
+16
-17
delft/flake.nix
+16
-17
@@ -5,26 +5,25 @@
5
outputs = flakes @ { self, nixpkgs, nix-netboot-serve }:
6
let inherit (nixpkgs) lib;
7
in {
8
- nixopsConfigurations.default =
9
- { inherit nixpkgs; }
10
- // import ./network.nix flakes;
8
+ nixosConfigurations.eris = nixpkgs.lib.nixosSystem {
9
+ system = "x86_64-linux";
10
+
11
+ modules = [
12
+ ./eris.nix
13
+ flakes.nix-netboot-serve.nixosModules.nix-netboot-serve
14
+ ];
15
+ };
16
12
- /*
13
- nixosConfigurations = builtins.removeAttrs (lib.mapAttrs (name: value: nixpkgs.lib.nixosSystem {
17
+ nixosConfigurations.haumea = nixpkgs.lib.nixosSystem {
18
system = "x86_64-linux";
19
+
20
modules = [
16
- value
17
- self.nixopsConfigurations.default.defaults
18
- {
19
- # hack: this doesn't check deployment options properly, but
20
- # is enough to have the deployment options ignored and allow
21
- # evaluating individual config options.
22
- options.deployment = lib.mkOption {
23
- type = (nixpkgs.legacyPackages.x86_64-linux.formats.json {}).type;
24
- };
25
- }
21
+ ./haumea.nix
22
];
27
- }) self.nixopsConfigurations.default) ["defaults"];
28
- */
23
+ };
24
+
25
+ nixopsConfigurations.default =
26
+ { inherit nixpkgs; }
27
+ // import ./network.nix flakes;
28
};
29
}