From 8f14fc46efcfe84228856b75c0d67307776c1b97 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 16 Jun 2024 16:08:15 -0600 Subject: [PATCH] btrfs scrub --- base.nix | 4 ---- hosts/miniserver/configuration.nix | 5 ++++- hosts/server/configuration.nix | 5 ++++- hosts/workstation/configuration.nix | 26 ++++++++++++++++---------- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/base.nix b/base.nix index 6d6d508..715406a 100644 --- a/base.nix +++ b/base.nix @@ -145,10 +145,6 @@ services = { smartd.enable = true; fstrim.enable = true; - btrfs.autoScrub = { - enable = true; - fileSystems = [ "/" ]; - }; avahi = { enable = true; nssmdns4 = true; diff --git a/hosts/miniserver/configuration.nix b/hosts/miniserver/configuration.nix index 153f24e..9bb5e71 100644 --- a/hosts/miniserver/configuration.nix +++ b/hosts/miniserver/configuration.nix @@ -101,7 +101,10 @@ }; }; services = { - btrfs.autoScrub.fileSystems = [ "/" ]; + btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" ]; + }; # minidlna = { # enable = true; # openFirewall = true; diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 99ca014..658132e 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -51,5 +51,8 @@ ]; }; }; - services.btrfs.autoScrub.fileSystems = [ "/" "/mnt/pool" ]; + services.btrfs = { + enable = true; + fileSystems = [ "/" ]; + }; } diff --git a/hosts/workstation/configuration.nix b/hosts/workstation/configuration.nix index 31be7ab..17eb9ba 100644 --- a/hosts/workstation/configuration.nix +++ b/hosts/workstation/configuration.nix @@ -109,16 +109,22 @@ enableVirtualCamera = true; }; }; - services.resilio = { - deviceName = "chichis"; - enable = true; - useUpnp = true; - enableWebUI = true; - httpPass = "528491"; - httpLogin = "chichis"; - httpListenPort = 9876; - httpListenAddr = "0.0.0.0"; - directoryRoot = "/resilio"; + services = { + btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" ]; + }; + resilio = { + deviceName = "chichis"; + enable = true; + useUpnp = true; + enableWebUI = true; + httpPass = "528491"; + httpLogin = "chichis"; + httpListenPort = 9876; + httpListenAddr = "0.0.0.0"; + directoryRoot = "/resilio"; + }; }; virtualisation = { podman = {