summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
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;