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 | 90d910c993e6fe885ef39a358efb45218391e7c8 (patch) | |
tree | acd719fb4ce40e04603fb726eb807800cda1fb04 /2configs | |
parent | 0e851f91d3c9a63db1ec4adbe62a072254b1eb44 (diff) |
ma share/gum-client: init
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/share/gum-client.nix | 23 | ||||
-rw-r--r-- | 2configs/share/gum.nix | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/2configs/share/gum-client.nix b/2configs/share/gum-client.nix new file mode 100644 index 000000000..be9ab026b --- /dev/null +++ b/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" + ]; + }; + +} diff --git a/2configs/share/gum.nix b/2configs/share/gum.nix index f5942a0f7..cc59ce3cc 100644 --- a/2configs/share/gum.nix +++ b/2configs/share/gum.nix @@ -10,7 +10,7 @@ in { # description = "smb guest user"; # home = "/var/empty"; # }; - + environment.systemPackages = [ pkgs.samba ]; users.users.download.uid = genid "download"; services.samba = { enable = true; |