enable btrfs autoscrub

This commit is contained in:
Aly Raffauf 2024-06-02 05:17:30 -04:00
parent 2f0c7e60cb
commit 82c89171fc
5 changed files with 18 additions and 4 deletions

View file

@ -37,7 +37,10 @@
# Save power/better manage heat & fans.
powerManagement.powertop.enable = true;
services.thermald.enable = true;
services = {
btrfs.autoScrub.enable = true;
thermald.enable = true;
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -17,7 +17,7 @@
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "amd-gpu"];
boot.kernelParams = ["amdgpu.abmlevel=0"];
boot.kernelParams = ["amdgpu.abmlevel=0"]; # Disable AMD display management.
boot.extraModulePackages = [];
hardware.opengl = {
@ -30,7 +30,10 @@
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
};
services.xserver.videoDrivers = ["amdgpu"];
services = {
btrfs.autoScrub.enable = true;
xserver.videoDrivers = ["amdgpu"];
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -21,6 +21,8 @@
hardware.opengl.driSupport = true;
services.btrfs.autoScrub.enable = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction

View file

@ -41,7 +41,11 @@
# Save power/better manage heat & fans.
powerManagement.powertop.enable = true;
services.thermald.enable = true;
services = {
btrfs.autoScrub.enable = true;
thermald.enable = true;
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -30,6 +30,8 @@
# Otherwise, CPU doesn't automatically clock down.
powerManagement.cpuFreqGovernor = "ondemand";
services.btrfs.autoScrub.enable = true;
# Intel drivers with accelerated video playback support.
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver =