Managing config files: why not use mkOutOfStoreSymlink for everything?

{
  systemd.tmpfiles.rules = [
    "L+ /home/matklad/.config/git/config - - - - /home/matklad/dotfiles/git/config"
  ];
}

You may want to check the docs for the way to set owner and group explicitely or whether L+ is really what you want or whether L is enough for your usecase, this is a quick copy from my own config.

4 Likes