diff options
Diffstat (limited to 'nixos/yubikey.nix')
| -rw-r--r-- | nixos/yubikey.nix | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/nixos/yubikey.nix b/nixos/yubikey.nix index 868913a..ce3d5d3 100644 --- a/nixos/yubikey.nix +++ b/nixos/yubikey.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.nixos.yubikey; inherit (lib) types mkOption; @@ -15,10 +20,10 @@ in config = lib.mkIf cfg.enable { environment.systemPackages = builtins.attrValues { inherit (pkgs) - yubioath-flutter - yubikey-manager - pam_u2f - ; + yubioath-flutter + yubikey-manager + pam_u2f + ; }; programs.yubikey-touch-detector = { @@ -37,10 +42,12 @@ in # interactive = true; interactive = false; cue = true; - authfile = pkgs.writeText "u2f-mappings" (lib.concatStrings [ - config.nixos.username - ":GB+R91Ur898D/fEgih7f/tsSDOaDw1QcEOSGzHs4fOUo5uCaliIiEK4fFGDClybL/8Qa7tGAN+mo0tU7PVmzfA==,GUPJuYykJoqBw7atGbIK/QcIATgJ3VZQKd1BrjMZ9g/f3nSejOv69LM5UCEoXAwuZHyJitVr1qYd1jLP2uckoQ==,es256,+presence" - ]); + authfile = pkgs.writeText "u2f-mappings" ( + lib.concatStrings [ + config.nixos.username + ":GB+R91Ur898D/fEgih7f/tsSDOaDw1QcEOSGzHs4fOUo5uCaliIiEK4fFGDClybL/8Qa7tGAN+mo0tU7PVmzfA==,GUPJuYykJoqBw7atGbIK/QcIATgJ3VZQKd1BrjMZ9g/f3nSejOv69LM5UCEoXAwuZHyJitVr1qYd1jLP2uckoQ==,es256,+presence" + ] + ); }; }; services = { |