mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
vscode: don't create an empty settings.json
If I enable this module without using the userSettings option it will create an empty settings.json. We use mkIf to prevent this on the default value.
This commit is contained in:
parent
34dc4a5e03
commit
ef11164c0c
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ in
|
||||||
foldr
|
foldr
|
||||||
(a: b: a // b)
|
(a: b: a // b)
|
||||||
{
|
{
|
||||||
"${configFilePath}".text = builtins.toJSON cfg.userSettings;
|
"${configFilePath}" =
|
||||||
|
mkIf (cfg.userSettings != {}) {
|
||||||
|
text = builtins.toJSON cfg.userSettings;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
toSymlink;
|
toSymlink;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue