add subnet ip variable to fileserver and update secrets
This commit is contained in:
parent
b0f9e82700
commit
47245c4844
|
@ -539,11 +539,11 @@
|
||||||
},
|
},
|
||||||
"nix-secrets": {
|
"nix-secrets": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737453096,
|
"lastModified": 1737494768,
|
||||||
"narHash": "sha256-vxVmBzoCMsUj8U9WeWM9+6r/fj02Fdi+1h/JVth1e54=",
|
"narHash": "sha256-a1Wy0e7E6xpPgF2q3ysBMKN+0qoPZ0umdaNYXO+MP+4=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "0ba083a18deed72f72e52a38413977d19d23d053",
|
"rev": "512145a45785b730dab4cecc441680c7dd3eca5e",
|
||||||
"revCount": 246,
|
"revCount": 247,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
|
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{configVars, ...}:
|
{configVars, ...}:
|
||||||
let
|
let
|
||||||
homeshareDataLocation = configVars.locations.homeshareDataLocation;
|
homeshareDataLocation = configVars.locations.homeshareDataLocation;
|
||||||
|
subnetIp = configVars.networking.addresses.subnet.ip;
|
||||||
in {
|
in {
|
||||||
fileSystems."/srv/export/photos" = {
|
fileSystems."/srv/export/photos" = {
|
||||||
device = "${homeshareDataLocation}/photos";
|
device = "${homeshareDataLocation}/photos";
|
||||||
|
@ -24,9 +25,9 @@ in {
|
||||||
statdPort = 4000;
|
statdPort = 4000;
|
||||||
extraNfsdConfig = '''';
|
extraNfsdConfig = '''';
|
||||||
exports = ''
|
exports = ''
|
||||||
/srv/export/photos 192.10.99.0/24(rw,sync,no_subtree_check) 10.0.10.0/24(rw,sync,no_subtree_check)
|
/srv/export/photos ${subnetIp}/24(rw,sync,no_subtree_check)
|
||||||
/srv/export/media 192.10.99.0/24(rw,sync,no_subtree_check) 10.0.10.0/24(rw,sync,no_subtree_check)
|
/srv/export/media ${subnetIp}/24(rw,sync,no_subtree_check)
|
||||||
/srv/export/personal 192.10.99.0/24(rw,sync,no_subtree_check) 10.0.10.0/24(rw,sync,no_subtree_check)
|
/srv/export/personal ${subnetIp}/24(rw,sync,no_subtree_check)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# open nfs ports
|
# open nfs ports
|
||||||
|
|
Loading…
Reference in New Issue