mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08: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:
@@ -85,7 +85,10 @@ in
|
||||
foldr
|
||||
(a: b: a // b)
|
||||
{
|
||||
"${configFilePath}".text = builtins.toJSON cfg.userSettings;
|
||||
"${configFilePath}" =
|
||||
mkIf (cfg.userSettings != {}) {
|
||||
text = builtins.toJSON cfg.userSettings;
|
||||
};
|
||||
}
|
||||
toSymlink;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user