From 3f34175635bebc216b793d942a98e64639f374ae Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 4 Aug 2026 19:57:57 -0500 Subject: update fileshares module with new smb options and update poweredge fileshares --- hosts/poweredge/fileshares.nix | 55 +++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 17 deletions(-) (limited to 'hosts/poweredge') diff --git a/hosts/poweredge/fileshares.nix b/hosts/poweredge/fileshares.nix index c5fca71..faf0f83 100644 --- a/hosts/poweredge/fileshares.nix +++ b/hosts/poweredge/fileshares.nix @@ -7,17 +7,6 @@ }; # Shares services._fileShares.shares = { - PS2 = { - path = "/media/ingens/games/ps2"; - smb = { - enable = true; - allowUser = "ps2"; - extraOptions = { - "min protocol" = "NT1"; - "max protocol" = "NT1"; - }; - }; - }; WinBackups = { path = "/media/ingens/backups/windows"; smb.enable = true; @@ -35,13 +24,45 @@ path = "/media/ingens/backups"; nfs.enable = true; }; + games = { + path = "/media/ingens/games"; + nfs.enable = true; + }; + documents = { + path = "/media/ingens/documents"; + nfs.enable = true; + smb.enable = true; + }; }; - # ps2 user - users.users.ps2 = { - isSystemUser = true; - password = "ps2"; - group = "ps2"; + # retro shares + containers.retronas = { + autoStart = true; + bindMounts = { + "/media/ingens/games" = { + hostPath = "/media/ingens/games"; + isReadOnly = false; + }; + }; + + config = { config, pkgs, ... }: { + imports = [ ../../nixos/services/fileshares.nix ]; # Get fileshares module + + services._fileShares = { + enable = true; + smb = { + port = 1445; + enableLegacyNT1 = true; # purpose of this container + openFirewall = true; + }; + }; + services._fileShares.shares = { + PS2 = { + path = "/media/ingens/games/ps2"; + smb.enable = true; + smb.allowGuests = true; + }; + }; + }; }; - users.groups.ps2 = {}; } -- cgit v1.2.3