diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-08-04 19:57:57 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-08-04 19:57:57 -0500 |
| commit | 3f34175635bebc216b793d942a98e64639f374ae (patch) | |
| tree | 1f568856bd9f96cc3c52f51f7e5f10115323728d /hosts/poweredge/fileshares.nix | |
| parent | 2beb167341f90c09425e25eb044d8103db509926 (diff) | |
| download | nixos-3f34175635bebc216b793d942a98e64639f374ae.tar.xz nixos-3f34175635bebc216b793d942a98e64639f374ae.zip | |
Diffstat (limited to 'hosts/poweredge/fileshares.nix')
| -rw-r--r-- | hosts/poweredge/fileshares.nix | 55 |
1 files changed, 38 insertions, 17 deletions
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 = {}; } |
