nixos-configs/nixosModules/desktop/environment/home/dev.nix
matt1432 24aa4b9842
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: make modules independant and exposed in the flake for outside use
2024-08-02 22:32:29 -04:00

23 lines
658 B
Nix

{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}
nix flake update "$1"
nh os switch
(
cd "/home/matt/git/$1/$2"
nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
)
'')
];
};
# For accurate stack trace
_file = ./dev.nix;
}