# Best resources for learning about the NixOS module system?

**URL:** https://discourse.nixos.org/t/best-resources-for-learning-about-the-nixos-module-system/1177
**Category:** Help
**Created:** [October 18, 2018, 6:46pm UTC](https://discourse.nixos.org/t/best-resources-for-learning-about-the-nixos-module-system/1177 "2018-10-18T18:46:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![teto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teto/32/182_2.png) [@teto](https://discourse.nixos.org/u/teto)
#### Post date: [October 19, 2018, 9:03am UTC](https://discourse.nixos.org/t/best-resources-for-learning-about-the-nixos-module-system/1177/3 "2018-10-19T09:03:46Z")

</div>

You might find this thread useful, along with the reuslting implementation linked in the PR

> [@Use lib.types system to merge attrsets without the module system?](https://discourse.nixos.org/t/use-lib-types-system-to-merge-attrsets-without-the-module-system/534):
>
> Hi, I am trying to convert the current kernel config process from a string to a structured attrset ([[RFC] linux: translate config to structured config by teto · Pull Request #41393 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/41393)), i.e., from the legacy: linux\_latest\_9p = prev.pkgs.linux\_latest.override({ extraConfig = '' NET\_9P y NET\_9P\_VIRTIO y NET\_9P\_DEBUG y ''; }); to the desired linux\_latest\_9p = prev.pkgs.linux\_latest.override({ extraStructuredConfig = { NET\_9P = yes;…

Bottom line is: it’s possible to use the module system outside of nixos, to configure specific aspects of a package. It could for instance replace the very poor nixpkgs vimrc configure mechanism.

---

_[View the full topic](https://discourse.nixos.org/t/best-resources-for-learning-about-the-nixos-module-system/1177)._
