24 lines
696 B
Nix
24 lines
696 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
home.packages = [ pkgs.vscode ];
|
|
|
|
home.activation = {
|
|
linkVsCodeConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
#!/bin/bash
|
|
if [ -f /home/grey/.config/Code/User/settings.json ]; then
|
|
rm /home/grey/.config/Code/User/settings.json
|
|
fi
|
|
ln -s /home/grey/nixos/assets/dotfiles/vscode-config/settings.json /home/grey/.config/Code/User/settings.json
|
|
|
|
if [ -f /home/grey/.config/Code/User/keybindings.json ]; then
|
|
rm /home/grey/.config/Code/User/keybindings.json
|
|
fi
|
|
ln -s /home/grey/nixos/assets/dotfiles/vscode-config/keybindings.json /home/grey/.config/Code/User/keybindings.json
|
|
'';
|
|
};
|
|
}
|