diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-08-09 18:53:29 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-08-09 18:53:29 +0200 |
commit | ef2faad1898fd16dd9c99411a625b37499febf0e (patch) | |
tree | 51e6ee8e9044653eada9499c29f91ed1a89ffd84 | |
parent | a79ef72b95fdb993468faca42b95f4bf16b00501 (diff) | |
download | nixos-ef2faad1898fd16dd9c99411a625b37499febf0e.tar nixos-ef2faad1898fd16dd9c99411a625b37499febf0e.tar.gz nixos-ef2faad1898fd16dd9c99411a625b37499febf0e.tar.bz2 nixos-ef2faad1898fd16dd9c99411a625b37499febf0e.tar.xz nixos-ef2faad1898fd16dd9c99411a625b37499febf0e.zip |
systemd automounts instead of autofs
-rw-r--r-- | bragi.nix | 37 |
1 files changed, 25 insertions, 12 deletions
@@ -74,18 +74,31 @@ in rec { | |||
74 | ''; | 74 | ''; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | services.autofs = { | 77 | systemd.automounts = [ |
78 | enable = true; | 78 | { where = "/media/odin"; } |
79 | autoMaster = let | 79 | { where = "/media/dellingr"; } |
80 | mapConf = pkgs.writeText "auto" '' | 80 | { where = "/media/vali"; } |
81 | odin -fstype=nfs,ro odin.asgard.yggdrasil:/srv/media | 81 | ]; |
82 | dellingr -fstype=vfat,ro /dev/disk/by-uuid/6436-3432 | 82 | |
83 | vali -fstype=cifs,guest //VALI/Public | 83 | systemd.mounts = [ |
84 | ''; | 84 | { |
85 | in '' | 85 | what = "odin.asgard.yggdrasil:/srv/media"; |
86 | /media file:${mapConf} | 86 | where = "/media/odin"; |
87 | ''; | 87 | type = "nfs"; |
88 | }; | 88 | options = "ro"; |
89 | } | ||
90 | { | ||
91 | what = "/dev/disk/by-uuid/6436-3432"; | ||
92 | where = "/media/dellingr"; | ||
93 | type = "vfat"; | ||
94 | } | ||
95 | { | ||
96 | what = "//VALI/Public"; | ||
97 | where = "/media/vali"; | ||
98 | type = "cifs"; | ||
99 | options = "guest"; | ||
100 | } | ||
101 | ]; | ||
89 | 102 | ||
90 | systemd.globalEnvironment = { | 103 | systemd.globalEnvironment = { |
91 | JACK_PROMISCUOUS_SERVER = "1"; | 104 | JACK_PROMISCUOUS_SERVER = "1"; |