From df6c13b25be321489925a06db023dcc5d9fef06f Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 20 May 2026 21:07:51 +0300 Subject: [PATCH] add a bunch of zfs stuff --- hosts/configuration.nix | 8 +++++++- modules/apps.nix | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 983ead6..fc93465 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -21,10 +21,11 @@ }; }; + users.groups.kyren = {}; users.users.kyren = { isNormalUser = true; description = "Kyren"; - extraGroups = [ "networkmanager" "wheel" "docker" ]; + extraGroups = [ "kyren" "networkmanager" "wheel" "docker" ]; shell = pkgs.zsh; }; @@ -199,4 +200,9 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" SUBSYSTEM=="usb", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" ''; + + # Disk health monitoring + services.smartd.enable = true; + services.syncoid.enable = true; + services.sanoid.enable = true; } diff --git a/modules/apps.nix b/modules/apps.nix index ade983d..115c4ff 100644 --- a/modules/apps.nix +++ b/modules/apps.nix @@ -84,6 +84,8 @@ libsodium.dev libsodium.out python313Packages.libnacl + # syncoid # ZFS Syncing across pools + sanoid # ZFS Scheduled snapshots # Communication wasistlos # Whatsapp