Enable gnome-keyring on login
This commit is contained in:
parent
7dc4a387ef
commit
27fb80a1e5
12
modules/services/pam/gnome-keyring.nix
Normal file
12
modules/services/pam/gnome-keyring.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue