nix-conf/system/dev/public/dn/yubikey.nix
2026-01-10 12:46:40 +08:00

18 lines
371 B
Nix
Executable file

{
config,
...
}:
let
inherit (config.systemConf) username;
in
{
sops.secrets."u2f_keys" = {
sopsFile = ../../public/sops/dn-secret.yaml;
owner = username;
};
systemd.tmpfiles.rules = [
"d /home/${username}/.config/Yubico - ${username} - - -"
"L /home/${username}/.config/Yubico/u2f_keys - - - - ${config.sops.secrets."u2f_keys".path}"
];
}