This repository has no description
646 B
26 lines
1{ ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 {
6 packages.age-detect =
7 (pkgs.writeShellApplication {
8 name = "age-detect";
9 runtimeInputs =
10 with pkgs;
11 [
12 age
13 age-plugin-yubikey
14 age-plugin-fido2-hmac
15 age-plugin-tpm
16 yubikey-manager
17 libfido2
18 ]
19 ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
20 pkgs.age-plugin-se
21 ]);
22 text = builtins.readFile ./age-detect;
23 }).overrideAttrs
24 { passthru.usage = builtins.readFile ./usage.kdl; };
25 };
26}