ma share/gum-client: init

This commit is contained in:
makefu 2018-09-04 09:47:08 +02:00
parent 481376c150
commit 383091ba2b
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 24 additions and 1 deletions

View file

@ -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"
];
};
}

View file

@ -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;