❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add cifs share

Signed-off-by: A. Ottr <alex@otter.foo>

A. Ottr f8d0896b c1e08204

+27
+27
hosts/polecat/media.nix
··· 1 + { pkgs, config, ... }: 2 + { 3 + users.groups.media = { 4 + gid = 976; 5 + }; 6 + users.users.media = { 7 + group = "media"; 8 + isSystemUser = true; 9 + uid = 976; 10 + }; 11 + 12 + age.secrets.mediaUser = { 13 + file = ../../secrets/smb-media.age; 14 + owner = config.services.media.user; 15 + group = config.services.media.group; 16 + }; 17 + 18 + environment.systemPackages = [ pkgs.cifs-utils ]; 19 + fileSystems."/mnt/media" = { 20 + device = "//pine.otter.place/media"; 21 + fsType = "cifs"; 22 + options = let 23 + automount_opts = "nofail,x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; 24 + 25 + in ["${automount_opts},credentials=${config.age.secrets.mediaUser.path},uid=976,gid=976"]; 26 + }; 27 + }