- move ZFS and snapshot manager settings out of the global base - group snapshot files under common/optional/zfs - enable the ZFS module on existing ZFS hosts - make the global tmpfs setting overridable
27 lines
409 B
Nix
27 lines
409 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./snapshot.nix ];
|
|
|
|
boot.zfs = {
|
|
package = lib.mkDefault pkgs.zfs_2_4;
|
|
forceImportRoot = lib.mkDefault false;
|
|
};
|
|
|
|
services = {
|
|
snapshot_manager = {
|
|
enable = lib.mkDefault true;
|
|
PYTHONPATH = "${inputs.self}/";
|
|
};
|
|
|
|
zfs = {
|
|
trim.enable = lib.mkDefault true;
|
|
autoScrub.enable = lib.mkDefault true;
|
|
};
|
|
};
|
|
}
|