about summary refs log tree commit diff stats
path: root/modules/by-name/po/polkit
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/po/polkit')
-rw-r--r--modules/by-name/po/polkit/module.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/by-name/po/polkit/module.nix b/modules/by-name/po/polkit/module.nix
new file mode 100644
index 00000000..fb13505b
--- /dev/null
+++ b/modules/by-name/po/polkit/module.nix
@@ -0,0 +1,14 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.polkit;
+in {
+  options.soispha.polkit = {
+    enable = lib.mkEnableOption "polkit";
+  };
+  config = lib.mkIf cfg.enable {
+    security.polkit.enable = true;
+  };
+}