summaryrefslogblamecommitdiff
path: root/hermes/home-manager/leo/programs/keepassxc.nix
blob: a741376ab11e73ca7b22415044be39083724996b (plain) (tree)
































                                                                   
{lib, config, ...}: {
  options.keepassxc.enable = lib.mkEnableOption "keepassxc config";

  config = lib.mkIf config.keepassxc.enable {
    xdg.autostart.enable = true;

    programs.keepassxc = {
      enable = true;
      autostart = true;

      settings = {
        Browser.Enabled=true;
        FdoSecrets.Enabled = true;

        GUI = {
          MinimizeOnStartup = true;
          MinimizeOnClose = true;

          ApplicationTheme = "dark";
          HideUsernames = true;
          TrayIconAppearance = "monochrome-light";
        };

        PasswordGenerator = {
          Length = 128;
          LowerCase = true;
          UpperCase = true;
          SpecialChars = true;
        };
      };
    };
  };
}