summaryrefslogtreecommitdiff
path: root/hosts/poweredge/fileshares.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-04-01 18:32:03 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-04-01 18:32:03 -0500
commitc262e770fea606609accfdcb2873e5c2a20741d1 (patch)
treed77b0876c9cb74253417b2389e14a3fa9506d430 /hosts/poweredge/fileshares.nix
parent95236643f3dc3fe3e9c9ead89b70c5fa425ecb46 (diff)
downloadnixos-c262e770fea606609accfdcb2873e5c2a20741d1.tar.xz
nixos-c262e770fea606609accfdcb2873e5c2a20741d1.zip
poweredge filesharesHEADmaster
Diffstat (limited to 'hosts/poweredge/fileshares.nix')
-rw-r--r--hosts/poweredge/fileshares.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/hosts/poweredge/fileshares.nix b/hosts/poweredge/fileshares.nix
new file mode 100644
index 0000000..4593ef8
--- /dev/null
+++ b/hosts/poweredge/fileshares.nix
@@ -0,0 +1,44 @@
+{
+ # TODO make user for ps2
+ services._fileShares.enable = true;
+ services._fileShares.shares = {
+ PS2 = {
+ path = "/media/storage/games/ps2";
+ smb = {
+ enable = true;
+ allowUser = "ps2";
+ extraOptions = {
+ "min protocol" = "NT1";
+ "max protocol" = "NT1";
+ };
+ };
+ };
+ WinBackups = {
+ path = "/media/storage/backups/windows";
+ smb.enable = true;
+ };
+ pictures = {
+ path = "/media/storage/pictures";
+ nfs.enable = true;
+ };
+ tapes = {
+ path = "/media/storage/tapes";
+ nfs.enable = true;
+ };
+ backups = {
+ path = "/media/storage/backups";
+ nfs.enable = true;
+ };
+ };
+
+ users.users = {
+ ps2 = {
+ isSystemUser = true;
+ password = "ps2";
+ group = "ps2";
+ };
+ };
+ users.groups = {
+ ps2 = {};
+ };
+}