From 50e63f01c55bdc9bf7e34e33dc84c2b7fd657dc2 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 22 Feb 2025 16:54:54 +0100 Subject: Auto detect EFI --- modules/base-server.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/base-server.nix b/modules/base-server.nix index 7d92296..3545b31 100755 --- a/modules/base-server.nix +++ b/modules/base-server.nix @@ -39,10 +39,10 @@ kernelPackages = pkgs.linuxPackages_latest; loader = { grub = { - devices = [ "/dev/vda" ]; # nodev for EFI only + devices = [ config.fileSystems."/".device ]; # nodev for EFI only # EFI - efiSupport = true; - efiInstallAsRemovable = true; + efiSupport = config.fileSystems ? "/boot" && config.fileSystems."/boot".fsType == "vfat"; + efiInstallAsRemovable = config.fileSystems ? "/boot" && config.fileSystems."/boot".fsType == "vfat"; }; timeout = 1; }; @@ -58,6 +58,7 @@ enable = false; # allowedTCPPorts = [ ... ]; # allowedUDPPorts = [ ... ]; + allowedTCPPorts = [ 22 ]; }; useDHCP = false; -- cgit 1.5.1