commit 8d4130461a3a683e81722fa611166116e7cb83ba
parent 2762dd464a732a9e25a3b5087b301e224feb131f
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Fri, 4 Apr 2025 15:51:00 +0200
refactor: enable GRUB options from hardware modules
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/hardware/git-server/default.nix b/hardware/git-server/default.nix
@@ -26,6 +26,11 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
+ boot.loader.grub = {
+ efiSupport = true;
+ efiInstallAsRemovable = true;
+ };
+
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
diff --git a/hardware/main-server/default.nix b/hardware/main-server/default.nix
@@ -26,6 +26,11 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
+ boot.loader.grub = {
+ efiSupport = true;
+ efiInstallAsRemovable = true;
+ };
+
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
diff --git a/hosts/git-server/default.nix b/hosts/git-server/default.nix
@@ -137,9 +137,4 @@ in
};
networking.domain = gitDomain;
-
- boot.loader.grub = {
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
}
diff --git a/hosts/main-server/default.nix b/hosts/main-server/default.nix
@@ -136,9 +136,4 @@ rec {
networking = {
inherit domain;
};
-
- boot.loader.grub = {
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
}