Skip to content

Commit

Permalink
fix(kwin): make package addition conditional more robust against type…
Browse files Browse the repository at this point in the history
…checking

Signed-off-by: Fernando Rodrigues <[email protected]>
  • Loading branch information
SigmaSquadron committed Oct 19, 2024
1 parent 4c8f7bb commit cf5d677
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/kwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,11 @@ in
}
];

home.packages = with pkgs; lib.optionals cfg.kwin.scripts.polonium.enable [ polonium ];
home.packages =
with pkgs;
lib.optionals (
if builtins.isBool cfg.kwin.scripts.polonium.enable then cfg.kwin.scripts.polonium.enable else false
) [ polonium ];

programs.plasma.configFile."kwinrc" = lib.mkMerge [
# Titlebar buttons
Expand Down

0 comments on commit cf5d677

Please sign in to comment.