nixos-config/services/samba/home-pc.nix
Felix Schröter 0dee8b4fa7
fix(secrets): fix permissions
Also moves key references into respective configs where they are used.
2022-05-06 03:44:47 +02:00

22 lines
458 B
Nix

{ config, lib, pkgs, ... }:
{
age.secrets.samba.file = ../../secrets/samba.age;
fileSystems."/home/felschr/media" = {
device = "//192.168.1.234/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"
"credentials=${config.age.secrets.samba.path}"
];
};
}