nixos: gnupg, kwallet, and gnomekeyring unlocking for sddm, lightdm, greetd, and gdm

This commit is contained in:
Aly Raffauf 2024-06-22 15:29:41 -04:00
parent 47291b661b
commit e3045cd378
4 changed files with 21 additions and 8 deletions

View file

@ -38,7 +38,11 @@ in {
++ [gnomeCsAdjuster]; ++ [gnomeCsAdjuster];
# Enable keyring support for KDE apps in GNOME. # Enable keyring support for KDE apps in GNOME.
security.pam.services.gdm.enableKwallet = true; security.pam.services.gfm = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
# Enable GNOME and GDM. # Enable GNOME and GDM.
services = { services = {

View file

@ -5,10 +5,12 @@
... ...
}: { }: {
config = lib.mkIf config.alyraffauf.desktop.greetd.enable { config = lib.mkIf config.alyraffauf.desktop.greetd.enable {
security.pam.services = { security.pam.services.greetd = {
greetd.enableKwallet = lib.mkDefault true; enableGnomeKeyring = true;
greetd.enableGnomeKeyring = lib.mkDefault true; gnupg.enable = true;
kwallet.enable = true;
}; };
services = { services = {
greetd = { greetd = {
enable = true; enable = true;

View file

@ -1,13 +1,14 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.alyraffauf.desktop.lightdm.enable { config = lib.mkIf config.alyraffauf.desktop.lightdm.enable {
security.pam.services.lightdm = { security.pam.services.lightdm = {
enableGnomeKeyring = true; enableGnomeKeyring = true;
enableKwallet = true; gnupg.enable = true;
kwallet.enable = true;
}; };
services.xserver.displayManager.lightdm = { services.xserver.displayManager.lightdm = {

View file

@ -28,7 +28,13 @@ in {
++ [plasmaCsAdjuster]; ++ [plasmaCsAdjuster];
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
security.pam.services.sddm.enableGnomeKeyring = true;
security.pam.services.sddm = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
services = { services = {
desktopManager.plasma6.enable = true; desktopManager.plasma6.enable = true;
displayManager.sddm = { displayManager.sddm = {