From 9c281e0c59092fd1cc147ec02df8d547fbd9392c Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Mon, 3 Nov 2025 22:53:55 +0100 Subject: [PATCH] add keyring --- modules/hyprland/home.nix | 12 +++++++++--- modules/hyprland/system.nix | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/hyprland/home.nix b/modules/hyprland/home.nix index 31d79cc..2daaf0b 100644 --- a/modules/hyprland/home.nix +++ b/modules/hyprland/home.nix @@ -49,10 +49,9 @@ force = true; text = '' patch: - schema_list: + "schema_list": - schema: luna_pinyin_simp - menu: - page_size: 7 + "menu/page_size": 7 ''; }; @@ -74,6 +73,12 @@ ''; }; + # GNOME Keyring for storing WiFi passwords and other secrets + services.gnome-keyring = { + enable = true; + components = [ "secrets" "ssh" ]; + }; + wayland.windowManager.hyprland = { enable = true; xwayland.enable = true; @@ -91,6 +96,7 @@ # Execute apps at launch exec-once = [ + "gnome-keyring-daemon --start --components=secrets,ssh" "fcitx5 -d" "hypridle" "waybar" diff --git a/modules/hyprland/system.nix b/modules/hyprland/system.nix index 209ae09..bb57d24 100644 --- a/modules/hyprland/system.nix +++ b/modules/hyprland/system.nix @@ -38,6 +38,10 @@ }; }; + # GNOME Keyring with PAM integration for WiFi password storage + services.gnome.gnome-keyring.enable = true; + security.pam.services.greetd.enableGnomeKeyring = true; + # Input method configuration for Hyprland i18n.inputMethod = { enable = true;