holy shit im stupid, a lot of changes.

also added the configuration bc idk how to add only certain files but
whatever
This commit is contained in:
2026-07-05 23:42:52 -05:00
parent 4f9269315b
commit 4e925f8a89
10 changed files with 40 additions and 50 deletions
+6 -9
View File
@@ -7,12 +7,12 @@
let
cfg = config.homelab.core;
allowRootSSH = if cfg.ssh.PermitRootLogin then "yes" else "no";
allowRootSSH = if cfg.ssh.permitRootLogin then "yes" else "no";
in
{
config = {
boot.kernelPackages = shared.kernelMap.${cfg.kernel};
boot.kernelPackages = shared.kernelOptions.${cfg.kernel};
time.timeZone = "America/Chicago";
@@ -91,21 +91,18 @@ in
};
boot.loader =
if cfg.bootloader == "grub" then
if cfg.bootloader.type == "grub" then
{
grub = {
enable = cfg.grub.enable;
device = cfg.grub.device;
enable = cfg.bootloader.grub.enable;
device = cfg.bootloader.grub.device;
};
systemd-boot.enable = false;
}
else
{
systemd-boot = {
enable = cfg.systemd.enable;
efiSupport = cfg.systemd.efiSupport;
};
systemd-boot.enable = cfg.bootloader.systemd.enable;
grub.enable = false;
};