add btrfs module
This commit is contained in:
15
modules/misc/btrfs.nix
Normal file
15
modules/misc/btrfs.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{config, lib, ...}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.custom.misc.btrfs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.custom.misc.btrfs = {
|
||||||
|
enable = mkEnableOption "Enables btrfs scrubbing";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.btrfs.autoScrub.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -2,12 +2,13 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./backup.nix
|
./backup.nix
|
||||||
./wireshark.nix
|
./btrfs.nix
|
||||||
./virt-manager.nix
|
|
||||||
./nftables.nix
|
|
||||||
./cli-tools.nix
|
./cli-tools.nix
|
||||||
./tmpfs.nix
|
|
||||||
./static-ip.nix
|
|
||||||
./docker.nix
|
./docker.nix
|
||||||
|
./nftables.nix
|
||||||
|
./static-ip.nix
|
||||||
|
./tmpfs.nix
|
||||||
|
./virt-manager.nix
|
||||||
|
./wireshark.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
ssd.enable = true;
|
ssd.enable = true;
|
||||||
};
|
};
|
||||||
misc = {
|
misc = {
|
||||||
|
btrfs.enable = true;
|
||||||
backup = let
|
backup = let
|
||||||
kavita = "/data/kavita";
|
kavita = "/data/kavita";
|
||||||
syncthing = [ "/synced/default/" "/synced/work_drive/" ];
|
syncthing = [ "/synced/default/" "/synced/work_drive/" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user