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 = [
|
||||
./backup.nix
|
||||
./wireshark.nix
|
||||
./virt-manager.nix
|
||||
./nftables.nix
|
||||
./btrfs.nix
|
||||
./cli-tools.nix
|
||||
./tmpfs.nix
|
||||
./static-ip.nix
|
||||
./docker.nix
|
||||
./nftables.nix
|
||||
./static-ip.nix
|
||||
./tmpfs.nix
|
||||
./virt-manager.nix
|
||||
./wireshark.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user