Skip to content

Commit

Permalink
delft: flake: add nixosConfigurations outputs for the core machines (…
Browse files Browse the repository at this point in the history
…currently eris doesn't work due to more nixops dependencies)
  • Loading branch information
delroth committed Jan 12, 2024
1 parent d1977ee commit a078fbf
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions delft/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

0 comments on commit a078fbf

Please sign in to comment.