I made a chezmoi-like module that is more suited for public use images
#32
noahdotpy
started this conversation in
Show and tell
Replies: 3 comments 1 reply
|
Thanks for sharing it with us! Maybe some of this can be incorporated into already existing Like an option between choosing an external repository or internal location in |
0 replies
|
What's the reason for using chezmoi if no repository is used? |
1 reply
|
btw im loving using nushell for all my little (or big) scripts |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This module, instead of using external repositories, uses something like
config/homefiles/commonin your bluebuild repo.config/homefiles/commonin this case, would be a chezmoi source (initialised bychezmoi init, for example).This is how it works:
Step 1.
.pathfile, and script used by the service. This service is a user service and just does achezmoi apply(with some arguments)Step 2.
disable-service: truethen disable the service by default, otherwise enableStep 3.
add: see README.md in modules/homefiles for example) to /usr/share/bluebuild/homefiles/$entryStep 4.
/etc/skelSystemd Service - How does it work?
/usr/share/bluebuild/homefiles/changesWhat does the script do?
chezmoi applyfor every entry.yes "skip" | chezmoi apply ...to automatically skip any files that are different from the source.~/.local/state/bluebuild/homefiles/($entry_name)/chezmoi-state--no-tty --keep-goingis also tacked on, idk what it does but someone else used it so I did.noahdotpy/myublue: modules/homefiles
All reactions