1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-08 10:01:05 +01:00

helix: fix configuration file creation logic (#7319)

without this change, an extraConfig file always gets created, even when
none is specified
This commit is contained in:
Jonathan Davies 2025-06-24 17:06:11 +01:00 committed by GitHub
parent d07e9cceb4
commit a4bac2b9ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ in
settings =
let
hasSettings = cfg.settings != { };
hasExtraConfig = cfg.extraConfig != null;
hasExtraConfig = cfg.extraConfig != "";
in
{
"helix/config.toml" = mkIf (hasSettings || hasExtraConfig) {