start to remove modules in favour of options

This commit is contained in:
greyweather committed 2026-08-27 03:08:09 +01:00
1 parent 7245e872f6
commit f770b83b5c
23 files changed
+302 -389

No files matched your search

@@ -0,0 +1,20 @@
{ 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
'';
};
};
}