60 lines
1.1 KiB
Nix
60 lines
1.1 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;
|
|
};
|
|
|
|
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.extraConfig = ''
|
|
Storage=none
|
|
ProcessSizeMax=0
|
|
'';
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 25;
|
|
priority = 5;
|
|
};
|
|
}
|