Skip to content
Discussion options

You must be logged in to vote

Hi,

For cross-platform dotfiles, heres the most effective strategies:

  • Core Tools: Chezmoi is the industry standard for handling OS differences via conditional templates. Nix offers strict reproducibility, while GNU Stow is best for simple symlinking (though it requires custom bash scripts for OS logic).
  • Secrets Management: Never commit plain text. Dynamically inject secrets during setup using 1Password/Bitwarden CLIs, or encrypt repository files using SOPS or git-crypt.
  • Machine-Specific Settings: Keep .gitignored override files (e.g., ~/.zshrc.local) and source them at the end of your main configs to keep machine-specific quirks out of version control.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VECTORG99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects Plan and track your project's progress using boards and tables Question Ask and answer questions about GitHub features and usage source:ui Discussions created via Community GitHub templates
2 participants