From 383091ba2b7f953e2bffe7d203cba009f951951c Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 4 Sep 2018 09:47:08 +0200 Subject: ma share/gum-client: init --- makefu/2configs/share/gum-client.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 makefu/2configs/share/gum-client.nix (limited to 'makefu/2configs/share/gum-client.nix') diff --git a/makefu/2configs/share/gum-client.nix b/makefu/2configs/share/gum-client.nix new file mode 100644 index 00000000..be9ab026 --- /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" + ]; + }; + +} -- cgit v1.2.3