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];
# 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.
services = {

View file

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

View file

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

View file

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