Externalize systemd-boot module

This commit is contained in:
JuliusFreudenberger 2025-08-17 01:34:38 +02:00
parent 59506dac35
commit 544930ff2d
2 changed files with 16 additions and 9 deletions

View file

@ -4,6 +4,7 @@
imports =
[
../../modules/disko/efi-full-btrfs.nix
../../modules/systemd-boot.nix
../../modules/nix.nix
../../modules/network-server.nix
@ -15,15 +16,6 @@
./hardware-configuration.nix
];
boot = {
loader = {
systemd-boot = {
enable = true;
};
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = true;
};
networking.hostName = "kube01"; # Define your hostname.

15
modules/systemd-boot.nix Normal file
View file

@ -0,0 +1,15 @@
{
...
}: {
boot = {
loader = {
systemd-boot = {
enable = true;
};
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = true;
};
}