# \<nixpkgs/nixos\> is an expert system database

**URL:** https://discourse.nixos.org/t/nixpkgs-nixos-is-an-expert-system-database/671
**Category:** Development
**Created:** [August 13, 2018, 6:42pm UTC](https://discourse.nixos.org/t/nixpkgs-nixos-is-an-expert-system-database/671 "2018-08-13T18:42:05Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![layus](https://discourse.nixos.org/user_avatar/discourse.nixos.org/layus/32/125_2.png) [@layus](https://discourse.nixos.org/u/layus)
#### Post date: [January 17, 2020, 10:22am UTC](https://discourse.nixos.org/t/nixpkgs-nixos-is-an-expert-system-database/671/7 "2020-01-17T10:22:49Z")

</div>

> [@tomberek](#):
>
> Something missing is a way to tell how good a particular section is.

My intuition is that there are different levels of integrations for the services.\* subtree. In my mental model, the scale goes roughly like this:

1. **Trivial**  
Only an “enable” option, possibly a “configFile” option if applicable, otherwise rely on whatever is in /etc/xxx/config)
2. **Minimal**  
Some basic options, at least one of extraConfig, or configFile)
3. **Mixed**  
Several config options covering “most” use cases, the remaining in extraConfig
4. **Complete**  
The service can be fully configured in Nix options, without relying on an extraConfig argument, think [bluethooth](https://github.com/NixOS/nixpkgs-channels/blob/2628f20267d0c917772abc4c0a7c35788a740b31/nixos/modules/services/hardware/bluetooth.nix#L39-L47))
5. **Advanced**  
The service is fully configurable in nix, and options are type-checked, and tested with config testers. Currently bluetooth does not prevent the insertion of mis-typed keys. Think [knot-config-checked](https://github.com/NixOS/nixpkgs-channels/blob/7184df6beb88c4f5f3186e5b73d5437a3461ceaf/nixos/modules/services/networking/knot.nix#L11-L15) where the check is done with the right version of the package as configured in nixos.

Note that all of these support levels are valid. It just describes how tightly the service is integrated in nixos config system. Often, two styles can coexist. At the moment, bluetooth still supports extraConfig, even if is [deprecated](https://github.com/NixOS/nixpkgs-channels/blob/7184df6beb88c4f5f3186e5b73d5437a3461ceaf/nixos/modules/services/hardware/bluetooth.nix#L67).

* * *

Beyond that, a usage count would be really interesting, just as it would be for nixpkgs packages, but that seems more difficult to achieve.

---

_[View the full topic](https://discourse.nixos.org/t/nixpkgs-nixos-is-an-expert-system-database/671)._
