This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / ssh-yubikey / flake-module.nix
798 B 31 lines
1{ self, inputs, ... }: 2{ 3 perSystem = 4 { pkgs, ... }: 5 { 6 packages.ssh-yubikey = 7 (inputs.wrappers.lib.wrapPackage { 8 pkgs = pkgs; 9 package = pkgs.openssh; 10 env = { 11 KEYS_DIR = "${self}/keys"; 12 SSH = "${pkgs.openssh}/bin/ssh"; 13 }; 14 runtimeInputs = with pkgs; [ 15 age 16 age-plugin-yubikey 17 age-plugin-fido2-hmac 18 yubikey-manager 19 libfido2 20 self.packages.${pkgs.system}.age-detect 21 ]; 22 wrapper = 23 { envString, ... }: 24 '' 25 ${envString} 26 ${builtins.readFile ./ssh-yubikey} 27 ''; 28 }).overrideAttrs 29 { passthru.usage = builtins.readFile ./usage.kdl; }; 30 }; 31}