From f46827b48a16d181fad2ee2f19bc79e42b3ee977 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 17 Apr 2024 20:17:17 -0400 Subject: [PATCH] hyprland: enable kwallet and gnome keyring on login with greetd --- .../windowManagers/hyprland/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nixosModules/desktopConfig/windowManagers/hyprland/default.nix b/nixosModules/desktopConfig/windowManagers/hyprland/default.nix index 1345e1c7..527cb876 100644 --- a/nixosModules/desktopConfig/windowManagers/hyprland/default.nix +++ b/nixosModules/desktopConfig/windowManagers/hyprland/default.nix @@ -11,8 +11,6 @@ }; config = lib.mkIf config.desktopConfig.windowManagers.hyprland.enable { - desktopConfig.displayManagers.lightdm.enable = lib.mkDefault false; - services.greetd = { enable = true; settings = rec { @@ -22,22 +20,25 @@ }; }; + security.pam.services.greetd.enableKwallet = true; + security.pam.services.greetd.enableGnomeKeyring = true; + programs.hyprland.enable = true; programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland; programs.gnupg.agent.pinentryPackage = pkgs.pinentry-gnome3; + services.dbus.packages = [pkgs.gcr]; + services.udev.packages = [pkgs.swayosd]; + + environment.sessionVariables.NIXOS_OZONE_WL = "1"; + nix.settings = { substituters = ["https://hyprland.cachix.org"]; trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ]; }; - - services.dbus.packages = [pkgs.gcr]; - services.udev.packages = [pkgs.swayosd]; - - environment.sessionVariables.NIXOS_OZONE_WL = "1"; }; }