fix: polkit-gnome autostart
This commit is contained in:
parent
1c01d0a19c
commit
3970c22f05
3 changed files with 5 additions and 24 deletions
|
|
@ -6,6 +6,7 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
||||||
|
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
|
||||||
uwsm app -- ${swayncScript}/bin/swaync-start &
|
uwsm app -- ${swayncScript}/bin/swaync-start &
|
||||||
dbus-update-activation-environment --systemd --all &
|
dbus-update-activation-environment --systemd --all &
|
||||||
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
||||||
|
|
@ -13,7 +14,7 @@ let
|
||||||
uwsm app -- waybar -c ~/.config/waybar/config.json -s ~/.config/waybar/style.css &
|
uwsm app -- waybar -c ~/.config/waybar/config.json -s ~/.config/waybar/style.css &
|
||||||
uwsm app -- swayidle -w &
|
uwsm app -- swayidle -w &
|
||||||
uwsm app -- sway-audio-idle-inhibit &
|
uwsm app -- sway-audio-idle-inhibit &
|
||||||
fcitx5 -rd &
|
uwsm fcitx5 -rd &
|
||||||
uwsm app -- fcitx5-remote -r &
|
uwsm app -- fcitx5-remote -r &
|
||||||
uwsm app -- hyprsunset -t 3000k
|
uwsm app -- hyprsunset -t 3000k
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,8 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
systemd = {
|
|
||||||
user.services.polkit-gnome-authentication-agent-1 = {
|
|
||||||
enable = true;
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
|
||||||
DefaultTimeoutStopSec=10s
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [ polkit polkit_gnome ];
|
environment.systemPackages = with pkgs; [ polkit polkit_gnome ];
|
||||||
|
# polkit-gnome execution is handled by Hyprland exec.nix
|
||||||
|
# as hyprland do not cooperate with graphical-session.target
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
greetd.u2fAuth = true;
|
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
# hyprlock.u2fAuth = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue