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 |
Beta Was this translation helpful? Give feedback.
0 replies
-
What's the reason for using chezmoi if no repository is used? |
Beta Was this translation helpful? Give feedback.
1 reply
-
btw im loving using nushell for all my little (or big) scripts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This module, instead of using external repositories, uses something like
config/homefiles/common
in your bluebuild repo.config/homefiles/common
in this case, would be a chezmoi source (initialised bychezmoi init
, for example).This is how it works:
Step 1.
.path
file, and script used by the service. This service is a user service and just does achezmoi apply
(with some arguments)Step 2.
disable-service: true
then 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/skel
Systemd Service - How does it work?
/usr/share/bluebuild/homefiles/
changesWhat does the script do?
chezmoi apply
for 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-going
is also tacked on, idk what it does but someone else used it so I did.noahdotpy/myublue: modules/homefiles
Beta Was this translation helpful? Give feedback.
All reactions