I'm new to managing dotfiles and am setting up Chezmoi on Windows 11. I install most of my programs with Scoop, but their configuration files are spread across Scoop persist directories, .config in my home folder, and %APPDATA%Roaming. I was considering moving everything into .config, setting XDG_CONFIG_HOME in my PowerShell profile for applications that support it, and using symlinks or junctions for the rest. Is this a sensible setup, or is there a better way to manage configuration files that need to stay in their original locations?
3 Answers
You generally don’t need to move or link anything. Chezmoi can manage files wherever applications expect them, so you can add each config from its normal location and let Chezmoi track it there. I’d avoid symlinks and junctions unless a specific application requires them. PowerShell profiles and files affected by OneDrive may need a small Windows-specific script to copy or place them correctly.
A practical setup is to use Chezmoi’s templates and source paths for the different locations, while keeping PowerShell-specific setup in your profile. Scoop and Chezmoi work well together as command-line tools used from PowerShell; Scoop installs the programs, and Chezmoi manages their configuration. Test each application individually rather than creating links for everything at once.
Using XDG_CONFIG_HOME is perfectly reasonable for programs that support it, and keeping those files under .config can make the layout cleaner. For applications that ignore XDG_CONFIG_HOME, though, it’s usually simpler to leave the files in %APPDATA%, a Scoop persist directory, or wherever the program expects them. Chezmoi doesn’t require every configuration file to share one directory.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures