From 4f39c537629bdd39f73937f93de3d369613da5be Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 28 Mar 2026 18:45:05 -0500 Subject: add default options to zfs archetype --- archetypes/profiles/zfs/default.nix | 14 +++++++++++--- 1 file 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) ]; } -- cgit v1.2.3