1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-19 20:53:52 +00:00
ultima/modules/nixos/base/default.nix
2024-12-06 21:57:22 +09:00

31 lines
702 B
Nix

{ pkgs, lib, config, hostName, userName, True, False, ... }:
with lib;
let cfg = config.module.base;
in {
options = { module.base = { enable = mkEnableOption ""; }; };
config = mkIf cfg.enable {
module.hardware.sound = True; # PIPEWIRE
services.getty.autologinUser = userName; # AUTOLOGIN
boot = { # BOOT
kernelPackages = with pkgs; linuxPackages_zen;
initrd.systemd = True;
loader = {
systemd-boot = True // { configurationLimit = 4; };
timeout = 0;
};
};
networking = { # NETWORKING
hostName = hostName;
useDHCP = mkDefault true;
};
security = { # SUDO RS
sudo = False;
sudo-rs = True;
};
};
}