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
..
2020-10-25 11:01:31 +01:00
2020-11-09 22:50:17 +01:00
2020-06-30 17:12:03 +02:00
2020-08-04 00:23:54 +10:00
2020-10-25 11:01:30 +01:00
2020-09-10 01:08:22 +02:00
2020-09-01 14:31:52 +03:00
2020-09-18 12:42:23 +02:00
2020-10-20 17:38:20 +02:00
2020-11-25 13:00:41 -05:00
2020-11-28 13:42:36 -05:00
2020-05-22 11:23:31 +02:00
2020-08-04 00:23:54 +10:00
2020-08-23 07:29:42 +12:00
2020-10-25 11:01:31 +01:00
2020-10-25 11:01:31 +01:00
2020-08-24 18:34:19 +10:00
2020-04-18 02:00:04 +02:00
2020-05-04 15:56:06 -07:00
2020-10-26 16:25:37 -04:00
2020-08-18 07:59:48 +10:00
2020-08-23 10:31:58 +02:00
2020-05-24 15:45:22 +02:00
2020-05-26 21:47:31 +02:00
2020-10-23 18:12:45 -07:00
2020-09-07 11:21:26 +02:00
2020-10-25 11:01:30 +01:00
2020-09-12 19:30:17 +02:00
2020-10-25 11:01:30 +01:00
2020-07-06 18:35:34 +02:00
2020-08-04 13:07:36 -07:00
2020-11-28 13:42:36 -05:00
2020-04-17 16:39:54 +02:00
2020-06-20 15:31:47 +02:00
2020-10-25 11:01:30 +01:00
2020-11-10 10:49:27 +01:00
2020-11-28 13:42:36 -05:00
2020-09-09 20:07:17 +02:00
2020-11-28 12:43:17 -05:00
2020-07-24 11:04:33 +02:00
2020-08-04 00:23:54 +10:00
2020-11-23 08:42:51 +10:00
2020-11-16 14:00:34 -05:00
2020-10-25 11:01:30 +01:00
2020-11-02 08:16:01 -05:00
2020-10-25 11:01:30 +01:00
2020-11-04 20:37:50 -05:00
2020-11-24 12:42:06 -05:00
2020-08-09 01:52:25 +02:00
2020-12-01 22:20:11 +10:00
2020-11-12 20:00:50 +01:00
2020-05-09 12:11:44 +02:00
2020-07-29 19:45:03 +02:00
2020-11-23 08:42:51 +10:00
2020-06-23 12:02:27 +02:00
2020-04-22 08:36:27 +02:00
2020-11-11 09:32:06 -05:00
2020-11-04 11:30:36 -05:00
2020-11-05 08:32:28 -05:00
2020-09-13 19:28:51 +02:00
2020-08-02 17:09:57 +02:00
2020-05-12 18:49:43 +02:00
2020-10-25 11:01:30 +01:00
2020-08-24 10:10:47 -04:00
2020-06-23 16:49:50 +02:00
2020-10-25 11:01:31 +01:00
2020-11-27 15:09:19 +01:00
2020-11-18 21:42:01 +01:00
2020-10-25 11:01:30 +01:00
2020-04-12 22:50:36 +02:00
2020-04-03 17:30:35 +02:00
2020-11-30 16:21:41 -03:00
2020-10-25 11:01:30 +01:00
2020-10-25 11:01:30 +01:00
2020-09-02 22:18:52 +08:00
2020-11-30 16:34:53 +09:00
2020-11-24 12:42:06 -05:00
2020-06-19 16:44:21 +02:00
2020-08-18 07:59:44 +10:00
2020-11-16 22:13:13 -05:00