main
 1{
 2  inputs,
 3  config,
 4  lib,
 5  withSystem,
 6  ...
 7}: {
 8  flake-file.inputs.vaultix.url = "github:milieuim/vaultix";
 9
10  imports = [inputs.vaultix.flakeModules.default];
11
12  flake.vaultix = let
13    secretDir = lib.path.append config.flake.meta.rootPath "secret";
14  in {
15    defaultSecretDirectory = secretDir;
16    identity = ./picokey.pub;
17    # TODO: Should not specific the editor host's plantform
18    # Need upstream fix
19    extraPackages = withSystem "x86_64-linux" ({pkgs, ...}: [pkgs.age-plugin-fido2-hmac]);
20  };
21}