feat: nb performance tweaks

This commit is contained in:
2025-10-16 21:48:21 +02:00
parent 356c049aaf
commit cc15f27205
6 changed files with 32 additions and 2 deletions

View File

@@ -74,10 +74,11 @@ in {
users.defaultUserShell = pkgs.zsh;
services.fwupd.enable = true;
services.irqbalance.enable = true;
swapDevices = [ {
device = "/nix/persist/swapfile";
size = 32 * 1024; # Size is in megabytes (for hibernation)
size = 96 * 1024; # Size is in megabytes (96GB for full hibernation with 92GB RAM)
} ];
# Memory tuning for 92GB RAM
@@ -91,6 +92,14 @@ in {
# nixos cross building qemu
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.supportedFilesystems = [ "ntfs" ];
# Btrfs maintenance
services.btrfs.autoScrub = {
enable = true;
interval = "monthly";
fileSystems = [ "/nix" ];
};
boot.plymouth = {
enable = true;
theme = "spin";