Something went wrong. Try again.
Configuration for my NixOS based systems and Home Manager
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263MKSHELL=rcgitroot=`{git rev-parse --show-toplevel}platform=`{uname}
default:V: if(test -e /etc/NIXOS) exec mk rebuild exec mk hmswitch
rebuild:V: git pull --rebase exec sudo nixos-rebuild switch --flake $gitroot
edge:V: if(! ~ `{hostname} misaki) { echo Must be run from misaki exit 1 } exec nixos-rebuild switch --flake $gitroot'#edge' --target-host edge
upgrade:V: nix flake update --flake $gitroot exec mk rebuild
update-overlays:V: ./overlays/scripts/update-codex-overlay & ./overlays/scripts/update-nixery-overlay & ./overlays/scripts/update-plex & ./overlays/scripts/update-tangled-inputs & ./overlays/scripts/update-lmstudio-overlay & ./overlays/scripts/update-neovim-overlay & wait
fmt:V: exec nix fmt $gitroot
hmswitch:V: switch($platform) { case Darwin flake='#noah-aleister' case Linux flake='#noah' case * echo Invalid platform exit 1 } home-manager switch --refresh --flake $HOME/.config/home-manager$flake
copyall:V: exec $gitroot/config/scripts/copy-nix-closure-to-misaki --all
impatient:V: exec sudo systemctl start --wait --verbose --no-pager nix-impatient.service
impatient-log:V: exec sudo journalctl -fu nix-impatient.service
warm:V: exec nix build $gitroot'#nix-impatient' --max-jobs 0 -L
clean:V: exec sudo nix-collect-garbage --delete-old