keepassxc: nullable package support
This commit is contained in:
parent
54b494a77f
commit
4d6a8f590e
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ in
|
|||
options.programs.keepassxc = {
|
||||
enable = lib.mkEnableOption "keepassxc";
|
||||
|
||||
package = lib.mkPackageOption pkgs "keepassxc" { };
|
||||
package = lib.mkPackageOption pkgs "keepassxc" { nullable = true; };
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = iniFormat.type;
|
||||
|
|
@ -46,7 +46,7 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
xdg.configFile = {
|
||||
"keepassxc/keepassxc.ini" = lib.mkIf (cfg.settings != { }) {
|
||||
source = iniFormat.generate "keepassxc-settings" cfg.settings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue