2025-08-25 23:52:05 -06:00
|
|
|
# Nix configuration
|
|
|
|
|
|
|
|
|
|
## Updating
|
2025-08-08 15:52:53 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
Update flake
|
2025-08-08 15:52:53 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
nix flake update --commit-lock-file
|
2025-08-08 15:52:53 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
Switch current machine
|
2025-01-27 23:20:23 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
sudo nixos-rebuild switch --flake . --show-trace
|
2025-01-27 23:20:23 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
Switch current home manager
|
2025-01-27 23:20:23 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
home-manager switch --flake . --show-trace
|
2025-01-27 23:20:23 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
Switch server
|
2025-08-08 15:52:53 -06:00
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --show-trace --flake .\#vps
|
2025-01-27 23:20:23 -06:00
|
|
|
|
2025-09-16 12:20:22 -06:00
|
|
|
Update homepage
|
|
|
|
|
|
|
|
|
|
nix flake update --commit-lock-file homepage
|
|
|
|
|
|
2025-08-25 23:39:30 -06:00
|
|
|
|
|
|
|
|
## Cleanup
|
|
|
|
|
|
2025-08-25 23:52:05 -06:00
|
|
|
Collect garbage (run with sudo to collect root garbage)
|
|
|
|
|
|
|
|
|
|
nix-collect-garbage -d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Submodule management
|
|
|
|
|
|
|
|
|
|
Trivionomicon
|
|
|
|
|
|
|
|
|
|
git subtree push --prefix=trivionomicon forgejo@git.posixlycorrect.com:deepState/trivionomicon.git master
|
|
|
|
|
git subtree pull --prefix=trivionomicon forgejo@git.posixlycorrect.com:deepState/trivionomicon.git master
|
|
|
|
|
|
|
|
|
|
## About
|
|
|
|
|
This is a unification of my old configs, which had a combined 506 commits.
|