removed the grub/systemd choice. fuck freedom

This commit is contained in:
2026-07-06 12:18:07 -05:00
parent 01198893ff
commit 232f8ca5f8
2 changed files with 11 additions and 68 deletions
+11 -20
View File
@@ -6,13 +6,22 @@
}: }:
let let
cfg = config.homelab.core; cfg = config.homelab.core;
allowRootSSH = if cfg.ssh.permitRootLogin then "yes" else "no"; allowRootSSH = if cfg.ssh.permitRootLogin then "yes" else "no";
in in
{ {
config = { config = {
boot.kernelPackages = shared.kernelOptions.${cfg.kernel}; boot = {
kernelPackages = shared.kernelOptions.${cfg.kernel};
loader = {
grub = {
enable = true;
device = "nodev";
efiSupport = true;
};
efi.canTouchEfiVariables = true;
};
};
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
@@ -89,24 +98,6 @@ in
settings.PermitRootLogin = allowRootSSH; settings.PermitRootLogin = allowRootSSH;
}; };
}; };
system.stateVersion = "26.11"; system.stateVersion = "26.11";
boot.loader =
if cfg.bootloader.type == "grub" then
{
grub = {
enable = cfg.bootloader.grub.enable;
device = cfg.bootloader.grub.device;
};
systemd-boot.enable = false;
}
else
{
systemd-boot.enable = cfg.bootloader.systemd.enable;
grub.enable = false;
};
}; };
} }
-48
View File
@@ -11,54 +11,6 @@
description = "The kernel of the machine"; description = "The kernel of the machine";
}; };
bootloader = {
type = lib.mkOption {
type = lib.types.enum [
"grub"
"systemd"
];
default = "grub";
description = "Which bootloader to use (grub or systemd-boot)";
};
grub = lib.mkOption {
type = lib.types.submodule {
options = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
device = lib.mkOption {
type = lib.types.str;
default = "nodev";
description = "Device to install GRUB on";
};
};
};
default = { };
description = "GRUB configuration block";
};
systemd = lib.mkOption {
type = lib.types.submodule {
options = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
efiSupport = lib.mkOption {
type = lib.types.bool;
default = true;
};
};
};
default = { };
description = "systemd-boot configuration block";
};
};
user = { user = {
name = lib.mkOption { name = lib.mkOption {
type = lib.types.str; type = lib.types.str;