Is it possible to mount a Nextcloud folder into the filesystem within the nix config that other services can use it? For example have a jellyfin server use the a family shared nextcloud folder

  • I’ve done variations of this concept, but I never tried that in NixOS.
    Something that should be pretty universal though, is to keep it read-only everywhere except one read-write container.
    Generally speaking, having multiple containers with write access to the same folder is a recipe for headaches.

    • Gooey0210@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      Why not, I have some really really good combos working, like:

      Synching + photoprism

      Transmission + jellyfin (optionally with *arr)

  • flashgnash@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    You could always just setup your nextcloud directory to be network mountable

    Though I’ve found badness comes from trying to modify nextcloud’s filesystem from outside nextcloud

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    Nextcloud allows webdav and has a guide how to do so manually on linux

    You can create a systemd user units that runs a script to mount your nextcloud or systemd user services. I’m not sure how to create it for a specific user instead of all users using the nixos options.
    I know home-manager does support systemd services for your user using systemd.user.services. This has an example. Some dude made a video too.

    Anti Commercial-AI license