3 ms·
Interesting OP went from stow to Nix without passing XDG, that seems a common path. I love the idea of NixOS, but I've so far stuck with (being annoyed by thin
by OJFord 5y ago
Interesting OP went from stow to Nix without passing XDG, that seems a common path.
I love the idea of NixOS, but I've so far stuck with (being annoyed by things that disrespect) XDG_CONFIG_HOME because it seems harder to version control Nix config, harder/more annoying or learning to confgure since you're now writing Nix config for everything rather than config for the tool itself. I think I'd always have two docs pages open instead of one.
- soraminazuki 5y agoYou don't need to write Nix configs for everything. With the following NixOS config, you can write raw configuration files and deploy them to /etc. # deploy ./config.txt to /etc/foo/config.txt environment.etc."foo/config.txt" = ./config.txt; You can do the same thing with Home Manager too. However, many Nix users just tend to write Nix configs instead because it's easier. For one thing, NixOS modules provides high level options that's easier to work with than bare config files. The NixOS website has a good search UI for those options too [1]. Second, the Nix language is a nice language for writing configurations. It's JSON, but with functions, variables, and other niceties like indented multi-line strings and string interpolation. Writing everything in the Nix language allows you to share configuration values across different software with ease. As for version control, I'm not sure what your issue is with Nix. Nix configuration files are just plain text files, so it can be version controlled like everything else. In fact, Nix flakes, the last topic of the article, is even designed to work best with version control. [1]: https://search.nixos.org/options https://search.nixos.org/options
- myme 5y agoI shared your concern with letting Nix manage all configs because it felt wrong to me to have an abstraction layer over all kinds of configs. I've later realized that's got a big benefit of being able to use values across various configs, like high DPI settings for specific machines with 4k monitors as an example. Version controlling Nix expressions is trivial since it's all just text files. So i basically use just git for that. With flake lock files you get a pretty high guarantee that rebuilding your configs (or machine setup) will be quite reproducible. I should add that I do still have some imperative/manual steps still though, mostly setting up doom emacs.