From 81431064affd0cec5eb7b7643d5676220a2c0a37 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 23 Jun 2022 13:39:19 -0700 Subject: [PATCH] shortcuts: Don't set programs.plasma.files if there are no shortcuts --- modules/shortcuts.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shortcuts.nix b/modules/shortcuts.nix index a1ee8d6..b50d2ca 100644 --- a/modules/shortcuts.nix +++ b/modules/shortcuts.nix @@ -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; };