1 line
2.8 KiB
Plaintext
1 line
2.8 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hi!</p> <p>Looking to switch to Guix after trying NixOS for a few days and deciding that it's tools are too fragmented and direction too unstable for me (that's the impression I got). It was, however, really easy and enjoyable to set up.</p> <p>I'm trying to figure out if Guix has "modules", which in Nix are usually files that contain options that you can enable in a single line from the main system configuration. For example, setting up <code>zram</code> is a single line is:</p> <pre><code>zramSwap.enable = true; </code></pre> <p>and it sets up the necessary kernel modules and parameters. Another example is the trackpoint Nix module, which allows me to:</p> <pre><code>hardware.trackpoint.sensitivity = 255; hardware.trackpoint.speed = 255; </code></pre> <p>and it sets up the required udev rules that set these attributes in the sysfs.</p> <p>Another, perhaps more excessive example is the <code>extraLayouts</code> module, which allows one to specify an entire keyboard layout in XKB within the Nix configuration. (I don't use this one but it's an example of what can be found on NixOS).</p> <p>There's also several modules to enable (and install) programs that are non-trivial to install, like adb and ssh-agent.</p> <p>Does Guix have an equivalent of these QOL "modules"? Or is it more verbose as in I have to manually declare which kernel modules/parameters to use for each thing? (The "Arch" way)</p> <p>They made it very easy to set up the system on NixOS. They are even documented in a generated man page <code>configuration.nix(5)</code> which I found convenient.</p> <p>Also, (this is probably worth it's own post) is there an equivalent for <a href="https://github.com/NixOS/nixos-hardware">nixos-hardware</a>? I was very pleased to find a module on there that fixed the specific quirks my machine has (specifically an issue with the display flickering), without having to look at the ArchWiki to see which kernel module I had to blacklist and such. I'm guessing there isn't, since Guix is already very limited in the hardware it officially supports (because no nonfree drivers), right? Still asking just in case I missed something that could work similar.</p> <p>Thanks in advance for any answers. :) Guix is fascinating and feels much more polished than Nix, but the community seems too small and mail/IRC-focused, which makes it really hard to find answers for questions.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/SeerLite"> /u/SeerLite </a> <br/> <span><a href="https://www.reddit.com/r/GUIX/comments/p9n8xd/does_guix_have_modules_options_that_abstract_away/">[link]</a></span>   <span><a href="https://www.reddit.com/r/GUIX/comments/p9n8xd/does_guix_have_modules_options_that_abstract_away/">[comments]</a></span> |