We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78746d commit 7fc702dCopy full SHA for 7fc702d
modules/programs/alacritty.nix
@@ -93,10 +93,13 @@ in
93
theme = "${alacrittyTheme}/share/alacritty-theme/${cfg.theme}.toml";
94
in
95
lib.mkIf (cfg.theme != null) (
96
- if lib.versionOlder cfg.package.version "0.14" then
97
- { general.import = [ theme ]; }
98
- else
99
- { import = [ theme ]; }
+ let
+ cfgVersion = "0.14";
+ in
+ lib.mkMerge [
100
+ (lib.mkIf (lib.versionOlder cfg.package.version cfgVersion) { general.import = [ theme ]; })
101
+ (lib.mkIf (lib.versionAtLeast cfg.package.version cfgVersion) { import = [ theme ]; })
102
+ ]
103
);
104
105
xdg.configFile."alacritty/alacritty.toml" = lib.mkIf (cfg.settings != { }) {
0 commit comments