# "programs.foo.enable = true" vs "systemPackages=\[foo\]" is confusing

**URL:** https://discourse.nixos.org/t/programs-foo-enable-true-vs-systempackages-foo-is-confusing/5534
**Category:** Help
**Created:** [January 17, 2020, 11:59pm UTC](https://discourse.nixos.org/t/programs-foo-enable-true-vs-systempackages-foo-is-confusing/5534 "2020-01-17T23:59:04Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![jonringer](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jonringer/32/1348_2.png) [@jonringer](https://discourse.nixos.org/u/jonringer)
#### Post date: [January 18, 2020, 1:28am UTC](https://discourse.nixos.org/t/programs-foo-enable-true-vs-systempackages-foo-is-confusing/5534/9 "2020-01-18T01:28:06Z")

</div>

If you’re on nix, don’t forget about `man configuration.nix`

It will be a good local reflection of whats on nixos-option / [NixOS Search](https://nixos.org/nixos/options.html) . If you prefer man format.

To answer your original question, generally the ‘.enable = true’ options are preferred as they will be smart about a system effects which are needed to the application/service to run correctly. For example, ‘virtualization.docker.enable = true’ will create the necessary groups, install the docker-daemon, install the docker cli, and a few other things to enable normal docker usage.

---

_[View the full topic](https://discourse.nixos.org/t/programs-foo-enable-true-vs-systempackages-foo-is-confusing/5534)._
