1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41:08 +01:00

feat: manage retiolum addresses globally, declaratively share moodle

This commit is contained in:
2021-10-12 11:51:55 +02:00
parent 6119c0dbcc
commit c50698f275
7 changed files with 38 additions and 20 deletions

View File

@@ -65,9 +65,9 @@ in
services.nfs.server = {
enable = true;
exports = ''
/export 10.243.2.4(fsid=0) 10.243.2.85(fsid=0)
/export/moodle 10.243.2.4(insecure,rw) 10.243.2.85(insecure,rw)
exports = let machines = with (import <niveum/lib>).retiolumAddresses; [kabsa manakish]; in ''
/export ${lib.concatMapStringsSep " " (machine: "${machine.ipv4}(fsid=0)") machines}
/export/moodle ${lib.concatMapStringsSep " " (machine: "${machine.ipv4}(insecure,rw)") machines}
'';
};
}