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.
29 lines
638 B
Nix
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;
|
|
};
|
|
}
|