This repository has no description
670 B
29 lines
1{ self, inputs, ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 {
6 packages.ssh-yubikey = inputs.wrappers.lib.wrapPackage {
7 pkgs = pkgs;
8 package = pkgs.openssh;
9 env = {
10 KEYS_DIR = "${self}/keys";
11 SSH = "${pkgs.openssh}/bin/ssh";
12 };
13 runtimeInputs = with pkgs; [
14 age
15 age-plugin-yubikey
16 age-plugin-fido2-hmac
17 yubikey-manager
18 libfido2
19 self.packages.${pkgs.system}.age-detect
20 ];
21 wrapper =
22 { envString, ... }:
23 ''
24 ${envString}
25 ${builtins.readFile ./ssh-yubikey}
26 '';
27 };
28 };
29}