• sickday@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    You can manage symlinks pretty easy with home-manager. I’d personally setup symlinks for these app configuration directories if I don’t want them storing files directly on the disk I use for $HOME. It’s also done in a delcarative way that can persist across multiple computers.

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

      I’m not sure I understand. So you create a symlink from $HOME/.program.ini to something in the nix store? If so, how does that solve the problem of clutter in $HOME ?

      • Byter@lemmy.one
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        You’re right, it doesn’t. That does give me an idea though.

        You could use overlayfs with an opaque upper directory to hide the files littering your $HOME and still access them by bind-mounting them into the appropriate xdg dirs.

        Way more effort than it’s worth, of course.