gnupg fix, add yubikey support
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# gnupg to fix conflict between kde
|
|
||||||
programs.gnupg.agent.pinentryPackage = pkgs.pinentry-gtk2;
|
|
||||||
# X11
|
# X11
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{config, ...}:
|
{config, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
#programs.ssh = {
|
||||||
startAgent = true;
|
# startAgent = true;
|
||||||
agentPKCS11Whitelist = "${config.security.tpm2.pkcs11.package}/lib/*,/run/current-system/sw/lib/*";
|
# agentPKCS11Whitelist = "${config.security.tpm2.pkcs11.package}/lib/*,/run/current-system/sw/lib/*";
|
||||||
};
|
#};
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = true;
|
settings.PasswordAuthentication = true;
|
||||||
|
|||||||
@@ -1,8 +1,20 @@
|
|||||||
{
|
{
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
security = {
|
security = {
|
||||||
sudo.execWheelOnly = true;
|
sudo.execWheelOnly = true;
|
||||||
polkit.enable = true;
|
polkit.enable = true;
|
||||||
protectKernelImage = true;
|
protectKernelImage = true;
|
||||||
|
pam.yubico = {
|
||||||
|
enable = true;
|
||||||
|
debug = true;
|
||||||
|
mode = "challenge-response";
|
||||||
|
id = [ "19694730" ];
|
||||||
|
};
|
||||||
tpm2 = {
|
tpm2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkcs11.enable = true;
|
pkcs11.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user