mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08: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:
@@ -232,7 +232,7 @@ in
|
||||
settings =
|
||||
let
|
||||
hasSettings = cfg.settings != { };
|
||||
hasExtraConfig = cfg.extraConfig != null;
|
||||
hasExtraConfig = cfg.extraConfig != "";
|
||||
in
|
||||
{
|
||||
"helix/config.toml" = mkIf (hasSettings || hasExtraConfig) {
|
||||
|
||||
Reference in New Issue
Block a user