3 ms·
Most people don't realize that you can read the arch wiki and put the same settings into the nixos options. Where is the point in replicating that all again?
by SuperSandro2000 2y ago
Most people don't realize that you can read the arch wiki and put the same settings into the nixos options. Where is the point in replicating that all again?
- Philpax 2y agoI don't know how to adapt those settings to the corresponding module - there are often differences in naming and hierarchy conventions - and there are other NixOS-specific considerations with regards to its shared-nothing architecture. While it is technically possible to adapt the information in the Arch wiki to NixOS, you need a strong understanding of the software, how it was packaged for NixOS, and NixOS itself to do it effectively. Once you do figure it out, it's pretty straightforward, but that can be hours as opposed to minutes with Arch.
- SuperSandro2000 2y agoModern modules often have a settings option which directly links to the upstream documentation and you basically write the options from upstream into the settings option. I look all the time in all kind of sources and skip all the tedious and annoying installation steps and just look at the described configs.
- denkmoon 2y agoMy one big question about nix is how the hell do I find out those options? Like cool, I know I need to set the config to some specific value based on arch wiki, but how do I read the nix package to find out what config "key" to use? I've never been able to work out where these are defined
- postcert 2y agoThe key terms don’t change so I usually just grep Nixpkgs in nvim and usually have a lead on where to start. Obviously it’s a bit more work than copy/paste from the arch wiki but generally more popular config changes will have an nixos option available.
- theo0833 2y agotry https://search.nixos.org/options https://search.nixos.org/options .
- lloeki 2y agoOr https://mynixos.com/ https://mynixos.com/ which is hierarchically navigable. I usually search for a package or setting name and browse around.
- Philpax 2y agoI look at the Nix definition for the relevant module as you often need to see what it's actually doing in order to understand it (yes, it's one of those ecosystems). For example, for the `steam` program (not package - the package is a dummy): https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/steam.nix https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/p... and then look for "lib.mk".