service/polkit: add service module to write Polkit agents

This commit is contained in:
Cu3PO42 2025-10-09 23:50:08 +02:00 committed by outfoxxed
parent 1b147a2c78
commit db1777c20b
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
23 changed files with 1557 additions and 1 deletions

View file

@ -21,6 +21,8 @@
libgbm ? null,
pipewire,
pam,
polkit,
glib,
gitRev ? (let
headExists = builtins.pathExists ./.git/HEAD;
@ -43,6 +45,7 @@
withPam ? true,
withHyprland ? true,
withI3 ? true,
withPolkit ? true,
}: let
unwrapped = stdenv.mkDerivation {
pname = "quickshell${lib.optionalString debug "-debug"}";
@ -76,7 +79,8 @@
++ lib.optionals (withWayland && libgbm != null) [ libdrm libgbm ]
++ lib.optional withX11 xorg.libxcb
++ lib.optional withPam pam
++ lib.optional withPipewire pipewire;
++ lib.optional withPipewire pipewire
++ lib.optionals withPolkit [ polkit glib ];
cmakeBuildType = if debug then "Debug" else "RelWithDebInfo";
@ -91,6 +95,7 @@
(lib.cmakeBool "SCREENCOPY" (libgbm != null))
(lib.cmakeBool "SERVICE_PIPEWIRE" withPipewire)
(lib.cmakeBool "SERVICE_PAM" withPam)
(lib.cmakeBool "SERVICE_POLKIT" withPolkit)
(lib.cmakeBool "HYPRLAND" withHyprland)
(lib.cmakeBool "I3" withI3)
];