14b4bdb585
- Add shared modules for boot, hardware, networking, input, and host defaults - Move host-specific TOML flags to new option namespaces - Update SSH and service defaults for the new layout
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
# inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./slim.nix
|
|
./uutils.nix
|
|
];
|
|
boot = {
|
|
consoleLogLevel = 0;
|
|
kernel.sysctl."vm.swappiness" = 10;
|
|
plymouth.enable = true;
|
|
initrd = {
|
|
systemd.enable = true;
|
|
verbose = false;
|
|
};
|
|
kernelParams = [
|
|
"quiet"
|
|
"udev.log_level=3"
|
|
"systemd.show_status=auto"
|
|
];
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
# kernelPackages = pkgs.linuxPackages_cachyos;
|
|
|
|
loader = {
|
|
timeout = 0;
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot = {
|
|
consoleMode = "auto";
|
|
configurationLimit = lib.mkOverride 1337 10;
|
|
};
|
|
};
|
|
tmp.cleanOnBoot = lib.mkDefault true;
|
|
};
|
|
|
|
console.font = "${pkgs.spleen}/share/consolefonts/spleen-16x32.psfu";
|
|
|
|
environment = {
|
|
ldso32 = null;
|
|
# memoryAllocator.provider = "mimalloc"; # weird memory consumption stuff
|
|
variables = {
|
|
LESS = "-R --mouse";
|
|
};
|
|
};
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.journald.extraConfig = ''
|
|
SystemMaxUse=1G
|
|
'';
|
|
systemd.coredump.settings.Coredump = ''
|
|
Storage=none
|
|
ProcessSizeMax=0
|
|
'';
|
|
|
|
zramSwap = {
|
|
enable = false;
|
|
algorithm = "zstd";
|
|
memoryPercent = 25;
|
|
priority = 5;
|
|
};
|
|
}
|