keepassxc: add package option
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-07-31 17:19:08 -04:00
parent a241d3b7f7
commit be2cdde564
3 changed files with 3 additions and 3 deletions

View file

@ -1,11 +1,10 @@
{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.home.apps.keepassxc.enable {
home.packages = [pkgs.keepassxc];
home.packages = [config.ar.home.apps.keepassxc.package];
xdg.configFile."keepassxc/keepassxc.ini".text = let
defaults = {

View file

@ -42,6 +42,7 @@ in {
keepassxc = {
enable = lib.mkEnableOption "KeePassXC password manager.";
package = lib.mkPackageOption pkgs "keepassxc" {};
settings = lib.mkOption {
description = "KeePassXC settings.";

View file

@ -4,7 +4,7 @@
pkgs,
...
}: let
keepassxc = "${lib.getExe' pkgs.keepassxc "keepassxc"} --pw-stdin ${config.home.homeDirectory}/sync/Passwords.kdbx < ${config.age.secrets.keepassxc.path}";
keepassxc = "${lib.getExe' config.ar.home.apps.keepassxc.package "keepassxc"} --pw-stdin ${config.home.homeDirectory}/sync/Passwords.kdbx < ${config.age.secrets.keepassxc.path}";
in {
programs.waybar.settings.mainBar."bluetooth" = {
"on-click" = lib.mkForce "${lib.getExe pkgs.rofi-bluetooth} -i";