Skip to content

How do I manage my /etc folder using chezmoi? #1510

Answered by felipecrs
ayushnix asked this question in Q&A
Discussion options

You must be logged in to vote

I think that running as root would be a need, otherwise how could chezmoi write to /etc? In my dotfiles, I currently configure the files under /etc with sudo inside of my run_ scripts. An example:

https://github.com/felipecrs/dotfiles/blob/master/home/run_once_before_1_setup_apt_packages.sh.tmpl#L68-L74

It may not be the cleanest approach, neither the most performant and bullet proof, but it works for me.

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@Lockszmith-GH
Comment options

@ronlut
Comment options

@felipecrs
Comment options

@00sapo
Comment options

@felipecrs
Comment options

Answer selected by ayushnix
Comment options

You must be logged in to vote
3 replies
@ayushnix
Comment options

@someonewithpc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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