samba some progress

This commit is contained in:
2023-09-12 13:31:46 +03:00
parent dea3eef575
commit 2b5b9bc57f
5 changed files with 74 additions and 26 deletions

View File

@@ -80,6 +80,13 @@
publicKey = myData.hosts."vno1-oh2.servers.jakst".publicKey;
};
};
jakstpub = {
enable = true;
dataDir = "/data/shared";
requires = ["data-shared.mount"];
uidgid = myData.uidgid.jakstpub;
};
};
};
@@ -87,25 +94,6 @@
services.journald.extraConfig = "Storage=volatile";
#services.samba = {
# enable = true;
# securityType = "user";
# enableNmbd = true;
# enableWinbindd = false;
# extraConfig = ''
# map to guest = Bad User
# guest account = jakstpub
# passwd backend = tbdsam
# '';
# shares = {
# public = {
# path = "/data/shared";
# writable = "yes";
# printable = "no";
# };
# };
#};
environment.etc = {
"datapool-passphrase.txt".source = config.age.secrets.datapool-passphrase.path;
};