add kpcli, now
parent
714c25f5ea
commit
72d3beb39a
|
@ -3,15 +3,22 @@ let
|
||||||
cfg = config.base.keepass;
|
cfg = config.base.keepass;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [ ./graphics.nix ];
|
||||||
options.base.keepass = {
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.kpcli # kp but is in cli
|
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
|
pkgs.keepass # Personal secret management
|
||||||
] else [ ]);
|
] else [ ]);
|
||||||
xdg.dataFile."keepass.kdbx".path =
|
# xdg.dataFile."keepass.kdbx".path =
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./base/neovim.nix
|
./base/neovim.nix
|
||||||
|
./base/keepass.nix
|
||||||
];
|
];
|
||||||
home = {
|
home = {
|
||||||
username = myHome.username;
|
username = myHome.username;
|
||||||
|
|
Loading…
Reference in New Issue