Added minimal zfs config
Still want to add an option for zfs on root later on.
This commit is contained in:
parent
954d01d4fe
commit
8df356ad9c
4 changed files with 26 additions and 5 deletions
22
modules/system/zfs/default.nix
Normal file
22
modules/system/zfs/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.system.zfs;
|
||||
in {
|
||||
options.aa.system.zfs = with types; {
|
||||
enable = mkEnableOption "zfs";
|
||||
# TODO: Introduce a zfsOnRoot option
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
autoSnapshot.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue