summaryrefslogtreecommitdiff
path: root/hosts/poweredge
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/poweredge')
-rw-r--r--hosts/poweredge/configuration.nix1
-rw-r--r--hosts/poweredge/fileshares.nix44
2 files changed, 45 insertions, 0 deletions
diff --git a/hosts/poweredge/configuration.nix b/hosts/poweredge/configuration.nix
index a363592..16a2686 100644
--- a/hosts/poweredge/configuration.nix
+++ b/hosts/poweredge/configuration.nix
@@ -3,6 +3,7 @@
in {
imports = [
./ddns-updater.nix
+ ./fileshares.nix
./networking.nix
#./notification-mailer.nix # TODO move some of this stuff to archetype
./wg1.nix
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 = {};
+ };
+}