mirror of
https://git.sr.ht/~neverness/ultima
synced 2024-12-29 17:23:53 +00:00
31 lines
688 B
Nix
31 lines
688 B
Nix
{ x, pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
with x;
|
|
let cfg = config.module.base;
|
|
in {
|
|
options = { module.base = { enable = mkBool; }; };
|
|
|
|
config = mkIf cfg.enable {
|
|
module.hardware.sound = True; # PIPEWIRE
|
|
services.getty.autologinUser = userName; # AUTOLOGIN
|
|
boot = { # BOOT
|
|
kernelPackages = with pkgs; linuxPackages_zen;
|
|
initrd.systemd = True // { dbus = True; };
|
|
loader = {
|
|
systemd-boot = True // { configurationLimit = 4; };
|
|
timeout = 0;
|
|
};
|
|
};
|
|
networking = { # NETWORKING
|
|
hostName = hostName;
|
|
useDHCP = mkDefault true;
|
|
};
|
|
security = { # SUDO RS
|
|
sudo = False;
|
|
sudo-rs = True;
|
|
};
|
|
};
|
|
}
|
|
|