summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/poweredge/fileshares.nix55
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 = {};
}