diff --git a/modules/mount-rock5b/default.nix b/modules/mount-rock5b/default.nix new file mode 100644 index 0000000..680c42b --- /dev/null +++ b/modules/mount-rock5b/default.nix @@ -0,0 +1,16 @@ +{ + pkgs, + config, + ... +}: { + fileSystems."/home/${config.ccr.username}/torrent" = { + device = "//sisko.fleet/torrent"; + fsType = "cifs"; + options = let + credentials = pkgs.writeText "credentials" '' + username=guest + password= + ''; + in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"]; + }; +}