nixy: enable zram swap, switch to linux latest, add user to plugdev group
This commit is contained in:
parent
5796eef05a
commit
b1746a6756
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user