1

General codestyle changes

This commit is contained in:
2024-06-03 20:37:24 +02:00
parent 26ea3f3f00
commit 1df9bf4011
9 changed files with 214 additions and 272 deletions

123
shell.nix
View File

@ -13,16 +13,16 @@ pkgs.devshell.mkShell {
# help = "Launch clion in this folder";
# command = "clion ./ &>/dev/null &";
# }
{
name = "util-watch-flatpak";
help = "Show running flatpak operations";
command = "watch -n 0.5 -d procs flatpak";
}
{
name = "util-watch-doom";
help = "Show running doom operations";
command = "watch -n 0.5 -d procs doom";
}
# {
# name = "util-watch-flatpak";
# help = "Show running flatpak operations";
# command = "watch -n 0.5 -d procs flatpak";
# }
# {
# name = "util-watch-doom";
# help = "Show running doom operations";
# command = "watch -n 0.5 -d procs doom";
# }
{
name = "util-pkgs-sys";
help = "List currently installed system packages";
@ -33,11 +33,11 @@ pkgs.devshell.mkShell {
help = "List currently installed user packages";
command = "bat ~/.local/share/current-user-packages";
}
{
name = "util-diff-system";
help = "Compare current system to ./result";
command = "nvd diff /run/current-system result";
}
# {
# name = "util-diff-system";
# help = "Compare current system to ./result";
# command = "nvd diff /run/current-system result";
# }
{
name = "util-data-dirs";
help = "List XDG_DATA_DIRS in a readable format";
@ -65,7 +65,8 @@ pkgs.devshell.mkShell {
{
name = "store-gc";
help = "Run NixOS garbage collector";
command = "nix-store --gc && sudo nix-collect-garbage -d && flatpak uninstall --unused";
# command = "nix-store --gc && sudo nix-collect-garbage -d && flatpak uninstall --unused";
command = "nh clean all";
}
{
name = "store-optimise";
@ -79,51 +80,51 @@ pkgs.devshell.mkShell {
}
# Rebuild
{
name = "rebuild-switch-nixinator";
help = "Rebuild and activate the nixinator config";
command = "sudo nixos-rebuild switch --flake .#nixinator";
}
{
name = "rebuild-build-nixinator";
help = "Rebuild the nixinator config (to diff systems)";
command = "sudo nixos-rebuild build --flake .#nixinator";
}
{
name = "rebuild-boot-nixinator";
help = "Rebuild and activate config on next boot";
command = "sudo nixos-rebuild boot --flake .#nixinator";
}
{
name = "rebuild-switch-nixtop";
help = "Rebuild and activate the nixtop config";
command = "sudo nixos-rebuild switch --flake .#nixtop";
}
{
name = "rebuild-build-nixtop";
help = "Rebuild and diff the nixtop config (to diff systems)";
command = "sudo nixos-rebuild build --flake .#nixtop";
}
{
name = "rebuild-boot-nixtop";
help = "Rebuild and activate config on next boot";
command = "sudo nixos-rebuild boot --flake .#nixtop";
}
{
name = "rebuild-switch-servenix";
help = "Rebuild and activate the servenix config";
command = "sudo nixos-rebuild switch --flake .#servenix";
}
{
name = "rebuild-build-servenix";
help = "Rebuild and diff the servenix config (to diff systems)";
command = "sudo nixos-rebuild build --flake .#servenix";
}
{
name = "rebuild-boot-servenix";
help = "Rebuild and activate config on next boot";
command = "sudo nixos-rebuild boot --flake .#servenix";
}
# {
# name = "rebuild-switch-nixinator";
# help = "Rebuild and activate the nixinator config";
# command = "sudo nixos-rebuild switch --flake .#nixinator";
# }
# {
# name = "rebuild-build-nixinator";
# help = "Rebuild the nixinator config (to diff systems)";
# command = "sudo nixos-rebuild build --flake .#nixinator";
# }
# {
# name = "rebuild-boot-nixinator";
# help = "Rebuild and activate config on next boot";
# command = "sudo nixos-rebuild boot --flake .#nixinator";
# }
# {
# name = "rebuild-switch-nixtop";
# help = "Rebuild and activate the nixtop config";
# command = "sudo nixos-rebuild switch --flake .#nixtop";
# }
# {
# name = "rebuild-build-nixtop";
# help = "Rebuild and diff the nixtop config (to diff systems)";
# command = "sudo nixos-rebuild build --flake .#nixtop";
# }
# {
# name = "rebuild-boot-nixtop";
# help = "Rebuild and activate config on next boot";
# command = "sudo nixos-rebuild boot --flake .#nixtop";
# }
# {
# name = "rebuild-switch-servenix";
# help = "Rebuild and activate the servenix config";
# command = "sudo nixos-rebuild switch --flake .#servenix";
# }
# {
# name = "rebuild-build-servenix";
# help = "Rebuild and diff the servenix config (to diff systems)";
# command = "sudo nixos-rebuild build --flake .#servenix";
# }
# {
# name = "rebuild-boot-servenix";
# help = "Rebuild and activate config on next boot";
# command = "sudo nixos-rebuild boot --flake .#servenix";
# }
# Help text (this is pretty stupid)
{