restructure zfs

This commit is contained in:
2025-10-14 12:21:06 -05:00
parent a960e1a018
commit 06587673c0
5 changed files with 29 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ let
nfs_exports = ''
/holocron/media *(ro,sync,no_subtree_check)
'';
#/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
#/holocron/users *(rw,sync,no_subtree_check,no_root_squash)
in {
options.holocron.nfs = {
enable = lib.mkEnableOption "enables nfs";

View File

@@ -8,8 +8,14 @@
let
cfg = config.holocron.smb;
smb_shares = {
vault = {
path = "/holocron/vault";
archives = {
path = "/holocron/archives";
browseable = true;
writable = true;
guestOk = false;
};
users = {
path = "/holocron/users";
browseable = true;
writable = true;
guestOk = false;

View File

@@ -32,5 +32,20 @@ in {
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/archives" = {
device = "holocron/archives";
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/users" = {
device = "holocron/users";
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/media" = {
device = "holocron/media";
fsType = "zfs";
options = ["nofail"];
};
};
}