Polkit stuff
This commit is contained in:
parent
ae6c4c3343
commit
2bdccc9fdb
@ -8,6 +8,10 @@ in {
|
||||
};
|
||||
programs.browserpass.enable = true;
|
||||
home-manager.users.balsoft = lib.mkIf (config.deviceSpecific.goodMachine) {
|
||||
programs.browserpass = {
|
||||
enable = true;
|
||||
browsers = [ "firefox" ];
|
||||
};
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-wayland;
|
||||
|
@ -29,7 +29,18 @@
|
||||
|
||||
systemd.services."user@" = { serviceConfig = { Restart = "always"; }; };
|
||||
|
||||
home-manager.users.balsoft.home.activation.yubi = {
|
||||
home-manager.users.balsoft = {
|
||||
systemd.user.services.polkit-agent = {
|
||||
Unit = {
|
||||
Description = "Run polkit authentication agent";
|
||||
X-RestartIfChanged = true;
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "sway-session.target" ];
|
||||
|
||||
Service = { ExecStart = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; };
|
||||
};
|
||||
home.activation.yubi = {
|
||||
data = ''
|
||||
mkdir -p .config/Yubico
|
||||
[ -f /home/balsoft/.config/Yubico/u2f_keys ] || (pamu2fcfg > /home/balsoft/.config/Yubico/u2f_keys)
|
||||
@ -37,6 +48,7 @@
|
||||
after = [ "linkGeneration" ];
|
||||
before = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
||||
@ -62,7 +74,10 @@
|
||||
then args="-s"
|
||||
else args="-san"
|
||||
fi
|
||||
# ${lib.optionalString (config.deviceSpecific.isLaptop) ''USER=balsoft ${pkgs.vlock}/bin/vlock "$args"''}
|
||||
# ${
|
||||
lib.optionalString (config.deviceSpecific.isLaptop)
|
||||
''USER=balsoft ${pkgs.vlock}/bin/vlock "$args"''
|
||||
}
|
||||
'')
|
||||
];
|
||||
|
||||
|
@ -93,13 +93,11 @@ in {
|
||||
{ command = apps.browser.cmd; }
|
||||
{ command = apps.mail.cmd; }
|
||||
|
||||
{
|
||||
command =
|
||||
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
|
||||
}
|
||||
{ command = "${pkgs.neochat}/bin/neochat"; }
|
||||
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }
|
||||
|
||||
# {
|
||||
# command =
|
||||
# "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
|
||||
# }
|
||||
{ command = "${pkgs.nheko}/bin/nheko"; }
|
||||
{
|
||||
command =
|
||||
"swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'";
|
||||
|
Loading…
Reference in New Issue
Block a user