summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bragi.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/bragi.nix b/bragi.nix
index 40ad52e5..cee70e36 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -43,6 +43,17 @@
43 ''; 43 '';
44 }; 44 };
45 45
46 services.autofs = {
47 enable = true;
48 autoMaster = let
49 mapConf = pkgs.writeText "auto" '''
50 odin -fstype=nfs,ro odin.asgard.yggdrasil:/srv/media
51 ''';
52 in '''
53 /media file:''${mapConf}
54 ''';
55 };
56
46 users.extraUsers.guest = { 57 users.extraUsers.guest = {
47 name = "gkleen"; 58 name = "gkleen";
48 isNormalUser = true; 59 isNormalUser = true;
@@ -57,10 +68,4 @@
57 }; 68 };
58 69
59 security.setuidPrograms = ["mount.nfs"]; 70 security.setuidPrograms = ["mount.nfs"];
60
61 fileSystems."/media/odin" = {
62 device = "odin.asgard.yggdrasil:/srv/media";
63 fsType = "nfs";
64 options = "noauto,nofail,users";
65 };
66} 71}