2024-08-02 22:32:29 -04:00
|
|
|
{pkgs, ...}: {
|
|
|
|
config = {
|
|
|
|
programs.bash.shellAliases = {
|
|
|
|
# https://wiki.hyprland.org/Contributing-and-Debugging/#lsp-and-formatting
|
|
|
|
"mkCMakeFiles" = "cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
(pkgs.writeShellScriptBin "testChanges" ''
|
|
|
|
rm -r /home/matt/git/$1/$2/{.cache,build}
|
2024-11-10 15:03:09 -05:00
|
|
|
cd /home/matt/.nix || return
|
2024-08-02 22:32:29 -04:00
|
|
|
nix flake update "$1"
|
|
|
|
nh os switch
|
2024-11-10 15:03:09 -05:00
|
|
|
cd "/home/matt/git/$1/$2" || return
|
|
|
|
nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
2024-08-02 22:32:29 -04:00
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./dev.nix;
|
|
|
|
}
|