feat(nix/host/orion): enable polkit
This commit is contained in:
parent
c388f3933a
commit
d0ab6df376
6
hosts/orion/modules/polkit.nix
Normal file
6
hosts/orion/modules/polkit.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
security.polkit = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
@ -592,6 +592,21 @@ in
|
|||||||
After = [ "compositor.target" ];
|
After = [ "compositor.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
polkit-gnome-authentication-agent-1 = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Gnome Polkit authentication agent";
|
||||||
|
Documentation = "https://gitlab.freedesktop.org/polkit/polkit/";
|
||||||
|
After = [ "graphical-session-pre.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user