added systemd service for gnome polkit
This commit is contained in:
parent
f252e88650
commit
56685ac7a2
3 changed files with 38 additions and 5 deletions
|
|
@ -9,11 +9,10 @@
|
||||||
}: {
|
}: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./systemd-services
|
||||||
./programs
|
./programs
|
||||||
#../sway
|
#../sway
|
||||||
../hypr
|
../hypr
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|
|
||||||
10
home/common/systemd-services/default.nix
Normal file
10
home/common/systemd-services/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./polkit.nix
|
||||||
|
#./file.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
24
home/common/systemd-services/polkit.nix
Normal file
24
home/common/systemd-services/polkit.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
|
||||||
|
user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
|
|
||||||
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
wants = [ "graphical-session.target" ];
|
||||||
|
after = [ "graphical-session.target" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
|
TimeoutStopSec = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue