summaryrefslogtreecommitdiff
path: root/archetypes/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'archetypes/profiles')
-rw-r--r--archetypes/profiles/zfs/default.nix14
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) ];
}