💾 Archived View for bbs.geminispace.org › u › Aelspire › 13697 captured on 2024-05-10 at 13:02:13. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

➡️ Next capture (2024-05-26)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🚲 Aelspire

Re: "Experiment: /etc/ in Git"

In: s/Linux

@michal_atlas Thanks for explanation. I’ve installed NixOS on VM (I don’t have spare real machine anymore) and experimenting with it. At this point I’m don’t even know what I don’t know, I’m reading articles posted by @zetamacs but haven’t yet managed to find enough time to digest it. But might spam some questions in NixOS’ subspace in future.

🚲 Aelspire [OP]

Jan 10 · 4 months ago

2 Later Comments ↓

🚲 Aelspire [OP] · Jan 27 at 19:06:

Experiment Results:

Don’t do that! Most of directories have 755 mode and owner root:root and most of files have 644 mode and the same ownership, but there are exceptions… and Git doesn’t store permissions except of executable bit. Guess how I found about it 😆

🪐 michal_atlas · Jan 29 at 00:23:

there are quite a few projects which basically act as git over /etc but do some extra magic exactly to solve these little issues.

for example

— etckeeper

Original Post

🌒 s/Linux

Experiment: /etc/ in Git — I’ve read about NixOS and I like the idea of putting OS configuration in Git. But I’m not sold for the package management of NixOS, it seems like kind of wrapper for traditional Linux? I’m not fan of wrappers as they usually are lacking some functionality of wrapped environment or simplify things too much and lacks flexibility in result. But is there anything preventing me from creating Git repository for whole /etc/? I’ve decided to test it on my Arch machine. The...

💬 Aelspire · 7 comments · 1 like · Jan 09 · 4 months ago