Fixed broken commit signing
Signed-off-by: Alejandro Angulo <iam@alejandr0angul0.dev>
This commit is contained in:
parent
5ce5814bf8
commit
c811e70254
3 changed files with 38 additions and 1 deletions
35
modules/apps/yubikey/default.nix
Normal file
35
modules/apps/yubikey/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.apps.yubikey;
|
||||
in {
|
||||
options.aa.apps.yubikey = with types; {
|
||||
enable = mkEnableOption "yubikey";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
yubikey-manager
|
||||
yubikey-agent
|
||||
yubico-pam
|
||||
];
|
||||
|
||||
services.pcscd.enable = true;
|
||||
|
||||
security.pam.yubico = {
|
||||
enable = true;
|
||||
#debug = true;
|
||||
mode = "challenge-response";
|
||||
# Uncomment below for 2FA
|
||||
#control = "required";
|
||||
};
|
||||
# To set up, need to run (might need to run first command as root)
|
||||
# ykman otp chalresp --touch --generate 2
|
||||
# ykpamcfg -2 -v
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue