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:
parent
d07e9cceb4
commit
a4bac2b9ba
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ in
|
||||||
settings =
|
settings =
|
||||||
let
|
let
|
||||||
hasSettings = cfg.settings != { };
|
hasSettings = cfg.settings != { };
|
||||||
hasExtraConfig = cfg.extraConfig != null;
|
hasExtraConfig = cfg.extraConfig != "";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"helix/config.toml" = mkIf (hasSettings || hasExtraConfig) {
|
"helix/config.toml" = mkIf (hasSettings || hasExtraConfig) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue