feat: move eww to declarative and isolate SUDO_ASKPASS

This commit is contained in:
matt1432 2023-06-24 19:44:16 +02:00
parent 534d7db975
commit 716e0c6fb3
2 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,6 @@ in
exec-once = ${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
source = ~/.config/hypr/main.conf
env = XDG_DATA_DIRS, ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:$XDG_DATA_DIRS
env = SUDO_ASKPASS, ${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname}
'';
};
}

View file

@ -123,6 +123,7 @@
usbutils
evtest
squeekboard
(builtins.getFlake "github:matt1432/eww-exclusiver").packages.x86_64-linux.default
glib
appimage-run
gparted # doesn't open without sudo
@ -138,8 +139,7 @@
done
) &
SUDO_ASKPASS = "${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname}";
exec sudo -k -EA '${gparted}/bin/${gparted.pname}' "$@"
exec env SUDO_ASKPASS=${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
'')
];