{ ... }: { perSystem = { pkgs, ... }: { packages.age-detect = (pkgs.writeShellApplication { name = "age-detect"; runtimeInputs = with pkgs; [ age age-plugin-yubikey age-plugin-fido2-hmac age-plugin-tpm yubikey-manager libfido2 ] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.age-plugin-se ]); text = builtins.readFile ./age-detect; }).overrideAttrs { passthru.usage = builtins.readFile ./usage.kdl; }; }; }