diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 0308adc..2f491e8 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -19,6 +19,7 @@ # Hardware ./hardware/machines/desktop.nix + ./hardware/systemdboot.nix ./hardware/nvidia.nix ./hardware/opengl.nix diff --git a/nixos/hardware/machines/desktop.nix b/nixos/hardware/machines/desktop.nix index efc1863..75c4545 100644 --- a/nixos/hardware/machines/desktop.nix +++ b/nixos/hardware/machines/desktop.nix @@ -66,12 +66,6 @@ in { extraModprobeConfig = '' options hid_apple fnmode=2 ''; - - # Use the Systemd-Boot bootloader - loader.systemd-boot = { - enable = true; - netbootxyz.enable = true; - }; }; # Additional entry to boot from the second GPU diff --git a/nixos/hardware/machines/server.nix b/nixos/hardware/machines/server.nix index 24a0dd4..a3c2fc4 100644 --- a/nixos/hardware/machines/server.nix +++ b/nixos/hardware/machines/server.nix @@ -22,12 +22,6 @@ "kvm-intel" ]; }; - - # Use the Systemd-Boot bootloader - loader.systemd-boot = { - enable = true; - netbootxyz.enable = true; - }; }; # Mounting options diff --git a/nixos/hardware/systemdboot.nix b/nixos/hardware/systemdboot.nix new file mode 100644 index 0000000..8bdedc7 --- /dev/null +++ b/nixos/hardware/systemdboot.nix @@ -0,0 +1,7 @@ +{ + # For UEFI Machines + boot.loader.systemd-boot = { + enable = true; + netbootxyz.enable = true; + }; +} diff --git a/nixos/server.nix b/nixos/server.nix index 4d55097..d876075 100644 --- a/nixos/server.nix +++ b/nixos/server.nix @@ -13,6 +13,7 @@ # Hardware ./hardware/machines/server.nix + ./hardware/systemdboot.nix # Services ./services/openssh.nix