nixos-config/services/samba/home-pc.nix
Felix Schröter 5fa9c0c87b
feat: create dedicated samba user
Also set samba share permissions to 0775 to allow users with `media`
group to create files.
2022-07-14 00:06:13 +02:00

25 lines
489 B
Nix

{ config, lib, pkgs, ... }:
{
age.secrets.samba.file = ../../secrets/samba.age;
fileSystems."/home/felschr/media" = {
device = "//192.168.1.102/media";
fsType = "cifs";
options = [
# automount options
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=60"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
"uid=1000"
"gid=100"
"credentials=${config.age.secrets.samba.path}"
"nobrl"
];
};
}