summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-02-22 16:54:54 +0100
committerRory& <root@rory.gay>2025-02-22 16:54:54 +0100
commit50e63f01c55bdc9bf7e34e33dc84c2b7fd657dc2 (patch)
tree91b7791ae8d78451a7bdf3cbbcd49ffee23060b2 /modules
parentUpdate service map for Rory-nginx (diff)
downloadRory-Open-Architecture-50e63f01c55bdc9bf7e34e33dc84c2b7fd657dc2.tar.xz
Auto detect EFI
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/base-server.nix7
1 files changed, 4 insertions, 3 deletions
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;