diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-03-28 18:45:05 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-03-28 18:45:05 -0500 |
| commit | 4f39c537629bdd39f73937f93de3d369613da5be (patch) | |
| tree | 338085582ac11b1e9785f36a28a1eb05f4f59293 /archetypes/profiles/zfs/default.nix | |
| parent | c5c3e72fb98f53e4ee0f501294c4fef08c67da1a (diff) | |
| download | nixos-4f39c537629bdd39f73937f93de3d369613da5be.tar.xz nixos-4f39c537629bdd39f73937f93de3d369613da5be.zip | |
add default options to zfs archetype
Diffstat (limited to 'archetypes/profiles/zfs/default.nix')
| -rw-r--r-- | archetypes/profiles/zfs/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/archetypes/profiles/zfs/default.nix b/archetypes/profiles/zfs/default.nix index fdf3561..5fe63fe 100644 --- a/archetypes/profiles/zfs/default.nix +++ b/archetypes/profiles/zfs/default.nix @@ -3,12 +3,20 @@ # https://wiki.nixos.org/wiki/ZFS nixosConfig = { - boot._loader.grub.zfsSupport = mkZfs true; - boot._loader.mode = mkZfs "efi"; + boot._loader = { + grub.zfsSupport = mkZfs true; + mode = mkZfs "efi"; + }; + + services.zfs = { + trim.enable = mkZfs true; + autoSnapshot.enable = mkZfs true; + autoScrub.enable = mkZfs true; + }; }; homeConfig = {}; in { - imports = [ (lib._mkProfileArchetype "router" nixosConfig homeConfig) ]; + imports = [ (lib._mkProfileArchetype "zfs" nixosConfig homeConfig) ]; } |
