add kpcli, now

pull/3/head
pegasust 2022-12-30 03:40:05 -07:00
parent 714c25f5ea
commit 72d3beb39a
2 changed files with 11 additions and 3 deletions

View File

@ -3,15 +3,22 @@ let
cfg = config.base.keepass;
in
{
imports = [ ./graphics.nix ];
options.base.keepass = {
enable = lib.mkEnableOption "keepass";
use_gui = lib.mkOption {
type = lib.types.bool;
description = "wheter to enable keepass GUI (the original one)";
default = false;
example = "true";
};
};
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.kpcli # kp but is in cli
] ++ (if cfg.use_gui or config.base.has_gui then [
] ++ (if cfg.use_gui or config.base.graphics._enable then [
pkgs.keepass # Personal secret management
] else [ ]);
xdg.dataFile."keepass.kdbx".path =
# xdg.dataFile."keepass.kdbx".path =
};
}

View File

@ -17,6 +17,7 @@ in
{
imports = [
./base/neovim.nix
./base/keepass.nix
];
home = {
username = myHome.username;