add kpcli, now
parent
714c25f5ea
commit
72d3beb39a
|
@ -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 =
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
./base/neovim.nix
|
||||
./base/keepass.nix
|
||||
];
|
||||
home = {
|
||||
username = myHome.username;
|
||||
|
|
Loading…
Reference in New Issue