diff options
author | tdback <tyler@tdback.net> | 2024-12-24 20:08:50 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2024-12-24 20:08:50 -0500 |
commit | 2f335a6c47b363189b976d18a8c7633bff4d7a33 (patch) | |
tree | ade55bb4f55a91ab34a1c859d8a849af8532ca77 /hosts | |
parent | 7643ff0660c93239d53406d331b3e026a20a8af4 (diff) |
add zquota to easily monitor disk usage of zfs datasets
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/eden/default.nix | 8 | ||||
-rw-r--r-- | hosts/oasis/default.nix | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/hosts/eden/default.nix b/hosts/eden/default.nix index 02be58f..01951ef 100644 --- a/hosts/eden/default.nix +++ b/hosts/eden/default.nix @@ -49,4 +49,12 @@ "zfs-zed" ]; }; + + services.zquota = { + enable = true; + quotas = { + "lagoon/backups" = 512; + "lagoon/media" = 2048; + }; + }; } diff --git a/hosts/oasis/default.nix b/hosts/oasis/default.nix index 8ef44f9..5b849fb 100644 --- a/hosts/oasis/default.nix +++ b/hosts/oasis/default.nix @@ -47,5 +47,10 @@ ]; }; + services.zquota = { + enable = true; + quotas = { "tank/sftpgo" = 512; }; + }; + services.sftpgo.dataDir = "/tank/sftpgo"; } |