Compare commits
1 commit
master
...
vscode-con
Author | SHA1 | Date | |
---|---|---|---|
f860f0b984 |
|
@ -6,6 +6,12 @@ let
|
||||||
|
|
||||||
cfg = config.programs.vscode;
|
cfg = config.programs.vscode;
|
||||||
|
|
||||||
|
configFilePath =
|
||||||
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
|
"Library/Application Support/Code/User/settings.json"
|
||||||
|
else
|
||||||
|
"${config.xdg.configHome}/Code/User/settings.json";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -23,8 +29,8 @@ in
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Configuration written to
|
Configuration written to Visual Studio Code's
|
||||||
<filename>~/.config/Code/User/settings.json</filename>.
|
<filename>settings.json</filename>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -47,7 +53,6 @@ in
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."Code/User/settings.json".text =
|
home.file."${configFilePath}".text = builtins.toJSON cfg.userSettings;
|
||||||
builtins.toJSON cfg.userSettings;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue