Enable gnome-keyring on login

This commit is contained in:
Natsu Kagami 2022-04-25 14:26:16 -04:00
parent 7dc4a387ef
commit 27fb80a1e5
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ 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;
};
}

View file

@ -11,6 +11,8 @@
./hardware-configuration.nix
# Fonts
../modules/personal/fonts
# Some PAM stuff
../modules/services/pam/gnome-keyring.nix
];
# Use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
@ -142,6 +144,7 @@
# };
# List services that you want to enable:
nki.services.pam.enableGnomeKeyring = true;
# Enable the OpenSSH daemon.
services.openssh.enable = true;