diff --git a/README.md b/README.md index f5da218..38c4817 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,24 @@ -## Screenshots +## Nix configuration -[Click here](https://old.reddit.com/r/unixporn/comments/1ml7w96/sway_minimalist_rice_on_nixos/) +Update flake + + nix flake update --commit-lock-file + +Switch current machine + + sudo nixos-rebuild switch --flake . --show-trace + +Switch current home manager + + home-manager switch --flake . --show-trace + +Switch server + + nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --show-trace --flake .\#vps -## Unified nix configuration +## Cleanup -Switch server: `nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --show-trace --flake .\#vps` - -Switch current machine: `sudo nixos-rebuild switch --flake . --show-trace` - -Switch current home manager: `home-manager switch --flake . --show-trace` - -Update homepage: `nix flake update --commit-lock-file homepage` - -Update whole flake: `nix flake update --commit-lock-file` +Collect garbage + nix store gc \ No newline at end of file