mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Hardware + filesystem optimzations (I think..)
This commit is contained in:
parent
4eb54c3fe6
commit
e738c2475b
5 changed files with 26 additions and 7 deletions
|
@ -13,10 +13,15 @@
|
|||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/637d8261-0650-4ece-a35b-59d97baf64a7";
|
||||
fsType = "btrfs";
|
||||
options = [ "noatime,compress=lzo,space_cache=v2,subvol=@" ];
|
||||
options = [ "noatime,compress=zstd:2,space_cache=v2,subvol=@" ];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-385106b5-71f7-460e-9a2b-2416f3b54cb6".device = "/dev/disk/by-uuid/385106b5-71f7-460e-9a2b-2416f3b54cb6";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
boot.consoleLogLevel = 0;
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
zenpower
|
||||
];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.journald.extraConfig = "SystemMaxUse=250M\nSystemMaxFiles=10";
|
||||
services.journald.rateLimitBurst = 800;
|
||||
services.journald.rateLimitInterval = "5s";
|
||||
services.journald.extraConfig = "SystemMaxUse=50M\nSystemMaxFiles=5";
|
||||
services.journald.rateLimitBurst = 500;
|
||||
services.journald.rateLimitInterval = "30s";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue