emacs/var/elfeed/db/data/7e/7e33a2efbef6a4fd3df1686c5b208814abec3975
2022-01-03 12:49:32 -06:00

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&#39;s tools are too fragmented and direction too unstable for me (that&#39;s the impression I got). It was, however, really easy and enjoyable to set up.</p> <p>I&#39;m trying to figure out if Guix has &quot;modules&quot;, 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&#39;t use this one but it&#39;s an example of what can be found on NixOS).</p> <p>There&#39;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 &quot;modules&quot;? Or is it more verbose as in I have to manually declare which kernel modules/parameters to use for each thing? (The &quot;Arch&quot; 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&#39;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&#39;m guessing there isn&#39;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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/GUIX/comments/p9n8xd/does_guix_have_modules_options_that_abstract_away/">[comments]</a></span>