From f2fb01a55b54dae9a5c26c7e1bae3d17c18de73e Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Fri, 25 Jul 2025 13:40:27 -0400 Subject: repo: format tree --- nixos/yubikey.nix | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'nixos/yubikey.nix') 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 = { -- cgit v1.2.3