diff options
author | makefu <github@syntax-fehler.de> | 2018-09-04 09:47:08 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-09-04 09:47:15 +0200 |
commit | 383091ba2b7f953e2bffe7d203cba009f951951c (patch) | |
tree | a365c6106cacfd6a8d3871e515cc2e47aa11cc62 /makefu/2configs/share/gum-client.nix | |
parent | 481376c1509661cbf1bdb17b9887b3a4f0487b6f (diff) |
ma share/gum-client: init
Diffstat (limited to 'makefu/2configs/share/gum-client.nix')
-rw-r--r-- | makefu/2configs/share/gum-client.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/makefu/2configs/share/gum-client.nix b/makefu/2configs/share/gum-client.nix new file mode 100644 index 000000000..be9ab026b --- /dev/null +++ b/makefu/2configs/share/gum-client.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +let + automount_opts = + [ "x-systemd.automount" + "noauto" "x-systemd.idle-timeout=600" + "x-systemd.device-timeout=5s" + "x-systemd.mount-timeout=5s" + ]; + host = "nextgum"; #TODO +in { + fileSystems."/media/download" = { + device = "//${host}/download"; + fsType = "cifs"; + options = automount_opts ++ + [ "credentials=/var/src/secrets/download.smb" + "file_mode=0775" + "dir_mode=0775" + "uid=9001" + ]; + }; + +} |