home: install keepassxc as a common desktop application

Create new package category "desktopCommon" that is enabled by default on all home hosts, useful for getting GUI packages across platforms.
This commit is contained in:
Trolli Schmittlauch 2024-04-07 01:31:11 +02:00
parent 6f87071aea
commit 4976cea39d
2 changed files with 12 additions and 5 deletions

View file

@ -17,7 +17,7 @@
devTools = true; devTools = true;
pythonTools = true; pythonTools = true;
games = true; games = true;
desktop = true; desktopLinux = true;
kde = true; kde = true;
}; };
latex.guiTools = true; latex.guiTools = true;

View file

@ -138,7 +138,9 @@ let
#hedgewars #hedgewars
]; ];
desktopApps = [ desktopCommon = [ keepassxc ];
desktopLinux = [
firefox firefox
chromium chromium
falkon falkon
@ -146,7 +148,6 @@ let
calibre calibre
dino dino
zotero zotero
keepassxc
ding ding
aspell aspell
aspellDicts.de aspellDicts.de
@ -234,7 +235,12 @@ in
devTools = lib.mkEnableOption "Enable a common set of dev tools"; devTools = lib.mkEnableOption "Enable a common set of dev tools";
pythonTools = lib.mkEnableOption "Enable a common set of python tools"; pythonTools = lib.mkEnableOption "Enable a common set of python tools";
games = lib.mkEnableOption "Enable some games"; games = lib.mkEnableOption "Enable some games";
desktop = lib.mkEnableOption "Enable a common set of desktop applications"; desktopCommon = lib.mkOption {
description = "GUI desktop applications that work cross-platform and cross-desktop";
type = lib.types.bool;
default = true;
};
desktopLinux = lib.mkEnableOption "Enable a common set of desktop applications";
kde = lib.mkEnableOption "Enable a common set of KDE applications"; kde = lib.mkEnableOption "Enable a common set of KDE applications";
}; };
config = { config = {
@ -246,7 +252,8 @@ in
++ (lib.optional cfg.devTools devTools) ++ (lib.optional cfg.devTools devTools)
++ (lib.optional cfg.pythonTools pythonTools) ++ (lib.optional cfg.pythonTools pythonTools)
++ (lib.optional cfg.games games) ++ (lib.optional cfg.games games)
++ (lib.optional cfg.desktop desktopApps) ++ (lib.optional cfg.desktopCommon desktopCommon)
++ (lib.optional cfg.desktopLinux desktopLinux)
++ (lib.optional cfg.kde kdeTools) ++ (lib.optional cfg.kde kdeTools)
); );