switch dev vm config to EFI

This commit is contained in:
Sean Buckley 2021-05-03 11:26:05 -04:00
parent c1421554c6
commit d48383488a

View file

@ -1,8 +1,10 @@
{ config, ... }:
{
sconfig.profile = "server";
boot.loader.grub.device = "/dev/vda";
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
fileSystems."/" = { device = "/dev/disk/by-partlabel/_root"; fsType = "ext4"; };
fileSystems."/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
security.sudo.wheelNeedsPassword = false;
users.users.root.openssh.authorizedKeys = config.users.users.sean.openssh.authorizedKeys;
}