Rid of gnome-keyring

This commit is contained in:
Natsu Kagami 2024-06-03 23:20:43 +02:00
parent aa3524840c
commit 1f14b6b02a
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 13 additions and 24 deletions

View file

@ -290,15 +290,11 @@ in
hardware.opengl.driSupport32Bit = !pkgs.stdenv.isAarch64; # For 32 bit applications
## Services
# gnome-keyring for storing keys
services.gnome.gnome-keyring.enable = true;
# OpenSSH so you can SSH to me
services.openssh.enable = true;
# PAM
security.pam.services.login.enableKwallet = true;
security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.lightdm.enableKwallet = true;
security.pam.services.lightdm.enableGnomeKeyring = true;
security.pam.services.swaylock = { };
# Printers
services.printing.enable = true;
@ -308,10 +304,9 @@ in
wlr.enable = true;
xdgOpenUsePortal = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
config.sway."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
config.sway.default = [ "wlr" "gtk" ];
config.sway.default = [ "wlr" "kde" ];
};
# D-Bus
services.dbus.packages = with pkgs; [ gcr ];

View file

@ -1,12 +0,0 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.nki.services.pam;
in
{
options.nki.services.pam.enableGnomeKeyring = mkEnableOption "Enable gnome-keyring on login";
config = mkIf cfg.enableGnomeKeyring {
security.pam.services.login.enableGnomeKeyring = true;
# security.pam.services.login.gnupg.enable = true;
};
}