Moved modules into appropriate folders
This commit is contained in:
parent
48dcf38304
commit
3760c929fe
9 changed files with 18 additions and 8 deletions
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.btrfsAutoscrub;
|
||||
in
|
||||
{
|
||||
options.btrfsAutoscrub = {
|
||||
enable = lib.mkEnableOption "Enable BTRFS Auto Scrub module";
|
||||
|
||||
interval = lib.mkOption {
|
||||
default = "weekly";
|
||||
type = config.services.btrfs.autoScrub.interval.type;
|
||||
description = config.services.btrfs.autoScrub.interval.description;
|
||||
};
|
||||
|
||||
fileSystems = lib.mkOption {
|
||||
default = [ ];
|
||||
type = config.services.btrfs.autoScrub.fileSystems.type;
|
||||
description = config.services.btrfs.autoScrub.fileSystems.description;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = cfg.interval;
|
||||
fileSystems = cfg.interval;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue