system.services.(<name>.services)*: Make pkgs available

I don't think we should keep this, but let's make it work for now,
and then we can remove it later.

+16
+16
nixos/modules/system/service/systemd/system.nix
··· 51 51 class = "service"; 52 52 modules = [ 53 53 ./service.nix 54 + 55 + # TODO: Consider removing pkgs. Service modules can provide their own 56 + # dependencies. 57 + { 58 + # Extend portable services option 59 + options.services = lib.mkOption { 60 + type = types.attrsOf ( 61 + types.submoduleWith { 62 + specialArgs.pkgs = pkgs; 63 + modules = [ ]; 64 + } 65 + ); 66 + }; 67 + } 54 68 ]; 55 69 specialArgs = { 56 70 # perhaps: features."systemd" = { }; 71 + # TODO: Consider removing pkgs. Service modules can provide their own 72 + # dependencies. 57 73 inherit pkgs; 58 74 systemdPackage = config.systemd.package; 59 75 };