From d48383488a20c3576995a45aaff6a7cca8a9515e Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 3 May 2021 11:26:05 -0400 Subject: [PATCH] switch dev vm config to EFI --- hosts/vm/configuration.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 2822611..8082cfb 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -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; }