summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-08-23 10:15:07 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-08-23 10:15:07 +0200
commitb73ee361fb890b46db40dd83bba07987de5d02b9 (patch)
tree01d78119ed9d6132268ce8aa586f95ffbb54a6ac /hel.nix
parent8ddd14d5c3e13007757018d897297ba668e31586 (diff)
downloadnixos-b73ee361fb890b46db40dd83bba07987de5d02b9.tar
nixos-b73ee361fb890b46db40dd83bba07987de5d02b9.tar.gz
nixos-b73ee361fb890b46db40dd83bba07987de5d02b9.tar.bz2
nixos-b73ee361fb890b46db40dd83bba07987de5d02b9.tar.xz
nixos-b73ee361fb890b46db40dd83bba07987de5d02b9.zip
gdm-fingerprint
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/hel.nix b/hel.nix
index 7b94e48e..3f2772fc 100644
--- a/hel.nix
+++ b/hel.nix
@@ -623,6 +623,26 @@
623 ''; 623 '';
624 }; 624 };
625 625
626 security.pam.services = {
627 gdm-fingerprint.text = ''
628 auth requisite pam_nologin.so
629 auth required pam_env.so envfile=${config.system.build.pamEnvironment}
630
631 auth required pam_succeed_if.so uid >= 1000 quiet
632 auth required ${pkgs.fprintd}/lib/security/pam_fprintd.so
633 auth optional ${pkgs.gnome3.gnome-keyring}/lib/security/pam_gnome_keyring.so
634
635 account sufficient pam_unix.so
636 password required ${pkgs.fprintd}/lib/security/pam_fprintd.so
637
638 session required pam_env.so envfile=${config.system.build.pamEnvironment}
639 session required pam_unix.so
640 session required pam_loginuid.so
641 session optional ${pkgs.systemd}/lib/security/pam_systemd.so
642 session optional ${pkgs.gnome3.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
643 '';
644 };
645
626 system = { 646 system = {
627 stateVersion = "16.09"; 647 stateVersion = "16.09";
628 }; 648 };