summaryrefslogtreecommitdiff
path: root/hosts/poweredge/fileshares.nix
blob: 90b738c720cc468a489756f3b0aa1dfdb0f94aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
	# Import zfs pools
	boot.zfs.extraPools = [ "ingens" "memoria" ];

	services._fileShares.enable = true;
	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;
		};
		pictures = {
			path = "/media/ingens/pictures";
			nfs.enable = true;
		};
		tapes = {
			path = "/media/ingens/tapes";
			nfs.enable = true;
		};
		backups = {
			path = "/media/ingens/backups";
			nfs.enable = true;
		};
	};

	users.users = {
		ps2 = {
			isSystemUser = true;
			password = "ps2";
			group = "ps2";
		};
	};
	users.groups = {
		ps2 = {};
	};
}