2024-05-05 08:08:06 +02:00
|
|
|
{ pkgs, ... }: {
|
2024-05-05 08:07:33 +02:00
|
|
|
security.pam.yubico = {
|
|
|
|
enable = true;
|
2024-05-05 09:26:04 +02:00
|
|
|
control = "required";
|
2024-05-05 08:07:33 +02:00
|
|
|
mode = "challenge-response";
|
2024-05-05 10:00:43 +02:00
|
|
|
challengeResponsePath = "/run/secrets/yubikey";
|
2024-05-05 08:07:33 +02:00
|
|
|
id = [ "18550256" ];
|
|
|
|
};
|
2024-05-05 09:56:47 +02:00
|
|
|
|
2024-05-05 10:19:20 +02:00
|
|
|
sops.secrets."yubikey/albert-18550256" = {
|
2024-05-05 10:29:27 +02:00
|
|
|
owner = "albert";
|
2024-05-05 10:24:05 +02:00
|
|
|
mode = "600";
|
2024-05-05 09:58:26 +02:00
|
|
|
sopsFile = ../../../secrets/yubikey.yaml;
|
2024-05-05 09:56:47 +02:00
|
|
|
};
|
2024-05-05 09:09:49 +02:00
|
|
|
|
2024-05-05 09:13:52 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
yubico-pam
|
|
|
|
];
|
2024-05-05 08:07:33 +02:00
|
|
|
}
|