{ inputs, self, ... }: { flake.homeModules.vscode = { osConfig, 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 ${osConfig.info.rootPath}/dotfiles/global/vscode/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 ${osConfig.info.rootPath}/dotfiles/global/vscode/keybindings.json /home/grey/.config/Code/User/keybindings.json ''; }; }; }