machines/nix/modules/nixos/openstack/default.nix
Kaare Hoff Skovgaard 608d758f30
Begin testing bootstrapping of vault authentication
However, the nixos-install script fails on khs openstack
as the system won't boot up after installation due it
being unable to locate the root disk. I am not sure what disk
it ends up finding.
2025-07-09 23:53:42 +02:00

29 lines
638 B
Nix

{
config,
lib,
...
}:
let
cfg = config.khscodes.openstack;
in
{
options.khscodes.openstack = {
enable = lib.mkEnableOption "Enables the machine as a openstack machine";
diskName = lib.mkOption {
type = lib.types.str;
default = "nixos";
description = "Name of the root disk device";
};
};
config = lib.mkIf cfg.enable {
disko = lib.mkDefault (
lib.khscodes.disko-root-bios {
device = "/dev/sda";
diskName = cfg.diskName;
}
);
boot.loader.grub.efiSupport = false;
boot.loader.timeout = 1;
# khscodes.virtualisation.qemu-guest.enable = true;
};
}