Skip to content

Can chezmoi sync dotfiles to a machine without internet connection/without a git repo? #2232

Answered by twpayne
halloleo asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can copy chezmoi and chezmoi's source state to your air-gapped box and run chezmoi apply. You'll be responsible for keeping the source state up-to-date, for example by manually transferring it from another machine. You won't be able to use externals, but normal files, directories, symlinks, and scripts should work.

Another option is to use chezmoi archive to generate the dotfiles on another machine and unpack that archive on your air-gapped machine.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@halloleo
Comment options

Answer selected by halloleo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants