2024-12-16 12:55:24 +00:00
|
|
|
{ x, pkgs, lib, config, ... }:
|
2024-12-06 12:57:22 +00:00
|
|
|
|
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-06 12:57:22 +00:00
|
|
|
let cfg = config.module.base;
|
|
|
|
in {
|
2024-12-09 01:15:55 +00:00
|
|
|
options = { module.base = { enable = mkBool; }; };
|
2024-12-06 12:57:22 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
module.hardware.sound = True; # PIPEWIRE
|
|
|
|
services.getty.autologinUser = userName; # AUTOLOGIN
|
|
|
|
boot = { # BOOT
|
|
|
|
kernelPackages = with pkgs; linuxPackages_zen;
|
2024-12-09 01:15:55 +00:00
|
|
|
initrd.systemd = True // { dbus = True; };
|
2024-12-06 12:57:22 +00:00
|
|
|
loader = {
|
|
|
|
systemd-boot = True // { configurationLimit = 4; };
|
|
|
|
timeout = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
networking = { # NETWORKING
|
|
|
|
hostName = hostName;
|
|
|
|
useDHCP = mkDefault true;
|
|
|
|
};
|
|
|
|
security = { # SUDO RS
|
|
|
|
sudo = False;
|
|
|
|
sudo-rs = True;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|