https://git.jolheiser.com/infra.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ pkgs, config, ... }: { age.secrets.cifs.file = ../secrets/cifs.age; environment.systemPackages = [ pkgs.cifs-utils ]; fileSystems."/mnt/feh" = { device = "//192.168.40.244/feh"; fsType = "cifs"; options = let automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; in [ "${automount_opts},credentials=${config.age.secrets.cifs.path}" ]; }; }