mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
zellij: switch config lang from yaml to kdl for 0.32.0
This commit is contained in:
parent
fce9dbfeb4
commit
c03d1e75a1
1 changed files with 12 additions and 4 deletions
|
@ -33,7 +33,7 @@ in {
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
{
|
{
|
||||||
theme = "custom";
|
theme = "custom";
|
||||||
themes.custom.fg = 5;
|
themes.custom.fg = "#ffffff";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -49,8 +49,16 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
home.file."${configDir}/config.yaml" = mkIf (cfg.settings != { }) {
|
# Zellij switched from yaml to KDL in version 0.32.0:
|
||||||
|
# https://github.com/zellij-org/zellij/releases/tag/v0.32.0
|
||||||
|
home.file."${configDir}/config.yaml" = mkIf
|
||||||
|
(cfg.settings != { } && (versionOlder cfg.package.version "0.32.0")) {
|
||||||
source = yamlFormat.generate "zellij.yaml" cfg.settings;
|
source = yamlFormat.generate "zellij.yaml" cfg.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file."${configDir}/config.kdl" = mkIf
|
||||||
|
(cfg.settings != { } && (versionAtleast cfg.package.version "0.32.0")) {
|
||||||
|
text = lib.hm.generators.toKDL { } cfg.settings;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue