Add polkit support

This commit is contained in:
Pedro Rey Anca 2024-08-03 22:53:35 +02:00
parent 62a55c2b45
commit db0e55a89c
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
security.rtkit.enable = true; security.rtkit.enable = true;
security.polkit.enable = true;
security.sudo.enable = true; security.sudo.enable = true;
security.sudo.package = pkgs.sudo.override {withInsults = true;}; # I'm spanish and I love cursing security.sudo.package = pkgs.sudo.override {withInsults = true;}; # I'm spanish and I love cursing
# security.pam.services.swaylock = { }; # security.pam.services.swaylock = { };

View file

@ -1,8 +1,9 @@
{...}: { {pkgs, ...}: {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
settings = { settings = {
# autostart # autostart
exec-once = [ exec-once = [
"${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent &"
"nm-applet &" "nm-applet &"
"wl-clip-persist --clipboard both &" "wl-clip-persist --clipboard both &"
"bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'" "bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'"