From db0e55a89c56630b92bf897ec26a372aae85e89d Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 Aug 2024 22:53:35 +0200 Subject: [PATCH] Add polkit support --- modules/core/security.nix | 1 + modules/home/hyprland/config.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/security.nix b/modules/core/security.nix index f6b2a3d..927a477 100644 --- a/modules/core/security.nix +++ b/modules/core/security.nix @@ -1,5 +1,6 @@ {pkgs, ...}: { security.rtkit.enable = true; + security.polkit.enable = true; security.sudo.enable = true; security.sudo.package = pkgs.sudo.override {withInsults = true;}; # I'm spanish and I love cursing # security.pam.services.swaylock = { }; diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 416c0c6..9a753d6 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -1,8 +1,9 @@ -{...}: { +{pkgs, ...}: { wayland.windowManager.hyprland = { settings = { # autostart exec-once = [ + "${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent &" "nm-applet &" "wl-clip-persist --clipboard both &" "bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'"