fixed duplicate key in proxmox-vm-hardeware.nix
This commit is contained in:
parent
4ad40dbadf
commit
0330ac7a87
1 changed files with 2 additions and 4 deletions
|
|
@ -42,13 +42,11 @@
|
||||||
kernelModules = [ "kvm-amd" ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
device = lib.mkDefault (if (hasNoFsPartition || supportBios) then
|
device =
|
||||||
# Even if there is a separate no-fs partition ("/dev/disk/by-partlabel/no-fs" i.e. "/dev/vda2"),
|
# Even if there is a separate no-fs partition ("/dev/disk/by-partlabel/no-fs" i.e. "/dev/vda2"),
|
||||||
# which will be used the bootloader, do not set it as loader.grub.device.
|
# which will be used the bootloader, do not set it as loader.grub.device.
|
||||||
# GRUB installation fails, unless the whole disk is selected.
|
# GRUB installation fails, unless the whole disk is selected.
|
||||||
"/dev/disk/by-uuid/40fe3178-6ec1-450f-93fd-c359f2f3daf9"
|
"/dev/disk/by-uuid/40fe3178-6ec1-450f-93fd-c359f2f3daf9";
|
||||||
else
|
|
||||||
"nodev");
|
|
||||||
efiSupport = lib.mkDefault supportEfi;
|
efiSupport = lib.mkDefault supportEfi;
|
||||||
efiInstallAsRemovable = lib.mkDefault supportEfi;
|
efiInstallAsRemovable = lib.mkDefault supportEfi;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue