nixpkgs/nixos/modules
Erik Arvstedt 9a283a038d
nixos-container: fix nixpkgs container options being ignored
Since the introduction of option `containers.<name>.pkgs`, the
`nixpkgs.*` options (including `nixpkgs.pkgs`, `nixpkgs.config`, ...) were always
ignored in container configs, which broke existing containers.

This was due to `containers.<name>.pkgs` having two separate effects:
(1) It sets the source for the modules that are used to evaluate the container.
(2) It sets the `pkgs` arg (`_module.args.pkgs`) that is used inside the container
    modules.
    This happens even when the default value of `containers.<name>.pkgs` is unchanged, in which
    case the container `pkgs` arg is set to the pkgs of the host system.
    Previously, the `pkgs` arg was determined by the `containers.<name>.config.nixpkgs.*` options.

This commit reverts the breaking change (2) while adding a backwards-compatible way to achieve (1).
It removes option `pkgs` and adds option `nixpkgs` which implements (1).
Existing users of `pkgs` are informed by an error message to use option
`nixpkgs` or to achieve only (2) by setting option `containers.<name>.config.nixpkgs.pkgs`.
2021-01-15 12:49:42 +01:00
..
config nixos/zram: add zramSwap.memoryMax option 2020-11-25 13:43:38 +00:00
hardware nixos/acpilight: add to packages 2020-11-12 05:22:18 +03:00
i18n/input-method hime: fix enable hime, remove hime-all package 2020-10-17 10:48:31 +08:00
installer utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
misc nixos/openldap: switch to slapd.d configuration 2020-11-21 15:39:19 +00:00
profiles nixos/hardened: update blacklisted filesystems 2020-09-27 06:16:58 +00:00
programs Merge pull request #86225 from sorki/proxychains 2020-11-28 19:45:32 +01:00
security Merge pull request #103866 from cole-h/doas 2020-11-30 19:02:55 +01:00
services Merge pull request #102076 from Taneb/hoogle-dynamic-user 2020-12-02 12:58:10 +01:00
system Merge master into staging-next 2020-11-29 13:51:10 +01:00
tasks nixos auto-upgrade: remove flag when flake 2020-11-25 08:34:04 +01:00
testing nixos/tests: only apply qemu parameters if the options are defined 2020-10-25 13:42:01 +01:00
virtualisation nixos-container: fix nixpkgs container options being ignored 2021-01-15 12:49:42 +01:00
module-list.nix Merge pull request #103393 from happysalada/add_vector 2020-12-02 03:30:11 -06:00
rename.nix Merge pull request #91256 from prusnak/seeks 2020-09-18 16:32:33 +02:00