Modetc: Move your dotfiles from kernel space
11–20 of 44 posts
Re: Modetc: Move your dotfiles from kernel space
#12One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.
> working out where configuration information is Generally, good behaved applications have an entry in their man page that spells out these details for you, so you don't have to work out anything.
Re: Modetc: Move your dotfiles from kernel space
#13I struggle to see a valid usecase for this that isn’t handled by symlinks.
Re: Modetc: Move your dotfiles from kernel space
#14Earlier quoted context omitted.
> working out where configuration information is Generally, good behaved applications have an entry in their man page that spells out these details for you, so you don't have to work out anything.
Unfortunately so many packages these days don’t even have a man page at all let alone one with good config info.
Re: Modetc: Move your dotfiles from kernel space
#15Earlier quoted context omitted.
Will you not have `~/.ssh`? If you have `.ssh .config/ssh` as a rewrite rule, `stat ~/.ssh` will still find it.
The point is to have a clean home directory.
Re: Modetc: Move your dotfiles from kernel space
#16One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.
But since the use case is personal dotfiles, I imagine the user isn't going to forget that they set this up.
Re: Modetc: Move your dotfiles from kernel space
#17Re: Modetc: Move your dotfiles from kernel space
#18One of the annoyances of Linux is working out where configuration information is, following through multiple layers of indirection and files over-riding other files. This looks like adding another layer, another place to look, and if you're reading the man file for a shell (for example) it probably won't even mention that this could invalidate the information contained in that in the man file.
Re: Modetc: Move your dotfiles from kernel space
#19Earlier quoted context omitted.
The point is to have a clean home directory.
Abandon hope. I just treat ~ as a system-owned configuration area, and put my actual files (documents, photos, etc.) in a completely different hierarchy under /.
Re: Modetc: Move your dotfiles from kernel space
#20I struggle to see a valid usecase for this that isn’t handled by symlinks.
Also, completely unrelated to my motivation, someone pointed out that modetc could be used to quickly hotfix packages built with Nix. Say that you need to fix a CVE in openssl, normally that would require to rebuild all dependent packages, which takes a long time. Instead with something like modetc you could build just openssl and rewrite /nix/store/-openssl-3.6.0/ -> /nix/store/-openssl-3.6.0-hotfix/.
Another application might be replacing some configuration file with placeholders for secrets, with one file with the secrets substituted in, without having to modify it in place, possibly only for a specific UID. This is something you might find useful on NixOS.