shortcuts: Don't set programs.plasma.files if there are no shortcuts

This commit is contained in:
Peter Jones 2022-06-23 13:39:19 -07:00
parent a9e0e6869c
commit 81431064af
No known key found for this signature in database
GPG Key ID: 9DAFAA8D01941E49

View File

@ -39,7 +39,7 @@ in
'';
};
config = lib.mkIf cfg.enable {
config = lib.mkIf (cfg.enable && builtins.attrNames cfg.shortcuts != 0) {
programs.plasma.files."kglobalshortcutsrc" =
shortcutsToSettings cfg.shortcuts;
};