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;
};
+3 -7
View File
@@ -73,22 +73,18 @@
};
shell = lib.mkOption {
type = with lib.types; listOf str;
type = lib.types.str;
default = "fish";
description = "The shell the primary user uses";
};
};
allowUnfree = lib.mkEnableOption {
enable = true;
allowUnfree = lib.mkEnableOption "unfree packages" // {
default = true;
};
ssh = {
permitRootLogin = lib.mkEnableOption {
enable = true;
default = false;
};
permitRootLogin = lib.mkEnableOption "root SSH login";
};
};
}
+1 -1
View File
@@ -3,7 +3,7 @@
{
kernelOptions = {
stable = pkgs.linuxPackages;
lts = pkgs.linuxPackages_lts;
lts = pkgs.linuxPackages_6_12;
latest = pkgs.linuxPackages_latest;
};
}