summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-04 19:44:12 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-04 19:44:12 +0200
commit4b648422c3a78897e4855734aa962f255afab30e (patch)
tree99fabaade0c3389acf4c0358d5a634ee58d007b6
parente882dec1dac888862824b3d0c0619f78669613fd (diff)
downloadnixos-4b648422c3a78897e4855734aa962f255afab30e.tar
nixos-4b648422c3a78897e4855734aa962f255afab30e.tar.gz
nixos-4b648422c3a78897e4855734aa962f255afab30e.tar.bz2
nixos-4b648422c3a78897e4855734aa962f255afab30e.tar.xz
nixos-4b648422c3a78897e4855734aa962f255afab30e.zip
bind mount
-rw-r--r--hel.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/hel.nix b/hel.nix
index 759441f7..bc2d520f 100644
--- a/hel.nix
+++ b/hel.nix
@@ -109,7 +109,7 @@
109 AllowStreamLocalForwarding no 109 AllowStreamLocalForwarding no
110 X11Forwarding no 110 X11Forwarding no
111 AllowAgentForwarding no 111 AllowAgentForwarding no
112 ChrootDirectory %h 112 ChrootDirectory /run/%u
113 AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u 113 AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u
114 ''; 114 '';
115 }; 115 };
@@ -353,5 +353,26 @@
353 virtualisation.virtualbox.host = { 353 virtualisation.virtualbox.host = {
354 enable = true; 354 enable = true;
355 }; 355 };
356
357 systemd.automounts = [
358 { enable = true;
359 where = "/run/media";
360 automountConfig = {
361 DirectoryMode = "700";
362 };
363 }
364 ];
365
366 systemd.mounts = [
367 { enable = true;
368 where = "/run/media";
369 what = "/var/media";
370 type = "none";
371 options = "bind";
372 mountConfig = {
373 DirectoryMode = "700";
374 };
375 }
376 ];
356} 377}
357 378