nixy: enable zram swap, switch to linux latest, add user to plugdev group

This commit is contained in:
Asmir A 2025-10-15 17:01:21 +02:00
parent 5796eef05a
commit b1746a6756
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -89,7 +89,7 @@ in
"amdgpu.sg_display=0" "amdgpu.sg_display=0"
"amdgpu.gttsize=2048" "amdgpu.gttsize=2048"
]; ];
kernelPackages = pkgs.linuxPackages_hardened; kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl = { kernel.sysctl = {
"net.core.default_qdisc" = "fq"; "net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_congestion_control" = "bbr";
@ -653,7 +653,7 @@ in
}; };
zramSwap = { zramSwap = {
enable = false; enable = true;
algorithm = "zstd"; algorithm = "zstd";
}; };
@ -661,14 +661,15 @@ in
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ extraGroups = [
"wireshark"
"kvm"
"tty"
"audio"
"sound"
"adbusers" "adbusers"
"audio"
"dialout" "dialout"
"kvm"
"plugdev"
"sound"
"tty"
"wheel" "wheel"
"wireshark"
]; ];
}; };
} }