nix/nixos/common/modules/yubikey-auth.nix
2024-05-05 17:17:25 +09:00

19 lines
398 B
Nix

{ pkgs, ... }: {
security.pam.yubico = {
enable = true;
debug = true;
control = "required";
mode = "challenge-response";
challengeResponsePath = "/run/secrets/yubikey";
id = [ "18550256" ];
};
sops.secrets."yubikey/albert" = {
owner = "root";
sopsFile = ../../../secrets/yubikey.yaml;
};
environment.systemPackages = with pkgs; [
yubico-pam
];
}