Add kpcli & fix template rust-monorepo bootstrap: corelib instead of core #3

Merged
pegasust merged 18 commits from top-level-wip into master 2022-12-31 10:23:16 +00:00
2 changed files with 11 additions and 3 deletions
Showing only changes of commit 72d3beb39a - Show all commits

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;