Commit 96111a65 authored by Robert Hensing's avatar Robert Hensing
Browse files

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.
parent 5ff76859
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -51,9 +51,25 @@ in
          class = "service";
          modules = [
            ./service.nix

            # TODO: Consider removing pkgs. Service modules can provide their own
            #       dependencies.
            {
              # Extend portable services option
              options.services = lib.mkOption {
                type = types.attrsOf (
                  types.submoduleWith {
                    specialArgs.pkgs = pkgs;
                    modules = [ ];
                  }
                );
              };
            }
          ];
          specialArgs = {
            # perhaps: features."systemd" = { };
            # TODO: Consider removing pkgs. Service modules can provide their own
            #       dependencies.
            inherit pkgs;
            systemdPackage = config.systemd.package;
          };