No description
|
|
||
|---|---|---|
| .gitea/workflows | ||
| .vscode | ||
| hosts | ||
| modules | ||
| overlays | ||
| scripts | ||
| secrets | ||
| tips | ||
| .envrc | ||
| .gitignore | ||
| .sops.yaml | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
Usefull commands
Configure
NixOS
nixos-rebuild switch --flake flake_path_directory#hostname
nix flake update --extra-experimental-features "nix-command flakes"
Home manager on standalone Linux
Already explain here
Show changements between revisions
nix profile diff-closures --profile /nix/var/nix/profiles/system
nix store diff-closures /nix/var/nix/profiles/system-rev1-link /nix/var/nix/profiles/system-rev2-link
Clean system
List all profiles
nix profile history --profile /nix/var/nix/profiles/system
Remove all profiles older than 7 days
sudo nix profile wipe-history --older-than 7d --profile /nix/var/nix/profiles/system
nix profile wipe-history --older-than 7d --profile ~/.local/state/nix/profiles/home-manager
Clean up all useless store from old profiles
sudo nix store gc --debug
Optimize Store
nix-store --optimise
error: cached failure of attribute 'nixosConfigurations.perso-desktop.config.system.build.toplevel'
sudo rm -fr /root/.cache/nix/
Usefull links
- https://api.github.com/rate_limit
- https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
- https://nixpk.gs/pr-tracker.html
- https://mobile.nixos.org/
- https://nixos.wiki/wiki/Build_flags
- https://ayats.org/blog/no-flake-utils