lol

pkgs.pkgsModule: init

Having `pkgs` as a module argument is common, beyond just NixOS,
making this a useful convenience for setting it.

(cherry picked from commit dd6d8e3f0c38370ac8fb082ea7a3be06c949deed)

+14
+14
pkgs/top-level/all-packages.nix
··· 33245 33245 in 33246 33246 c.config.system.build // c; 33247 33247 33248 + /* 33249 + A NixOS/home-manager/arion/... module that sets the `pkgs` module argument. 33250 + */ 33251 + pkgsModule = { lib, options, ... }: { 33252 + config = 33253 + if options?nixpkgs.pkgs then { 33254 + # legacy / nixpkgs.nix style 33255 + nixpkgs.pkgs = pkgs; 33256 + } 33257 + else { 33258 + # minimal 33259 + _module.args.pkgs = pkgs; 33260 + }; 33261 + }; 33248 33262 33249 33263 /* 33250 33264 * Run a NixOS VM network test using this evaluation of Nixpkgs.