mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-01 18:23:51 +00:00
28 lines
682 B
Nix
28 lines
682 B
Nix
{ pkgs, lib, config, True, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.module.services.polkit;
|
|
in {
|
|
options = { module.services.polkit = { enable = mkEnableOption ""; }; };
|
|
|
|
config = mkIf cfg.enable {
|
|
security.polkit = True;
|
|
# systemd = {
|
|
# user.services.polkitGui = {
|
|
# wantedBy = [ "graphical-session.target" ];
|
|
# wants = [ "graphical-session.target" ];
|
|
# after = [ "graphical-session.target" ];
|
|
# serviceConfig = {
|
|
# Type = "simple";
|
|
# ExecStart = "${pkgs.soteria}/bin/soteria";
|
|
# Restart = "on-failure";
|
|
# RestartSec = 1;
|
|
# TimeoutStopSec = 10;
|
|
# };
|
|
# };
|
|
# };
|
|
};
|
|
}
|
|
|