Set stable channels:
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
sudo nix-channel --add https://nixos.org/channels/nixos-22.05 nixos
sudo nix-channel --update
Update config:
sudo nixos-rebuild switch
Upgrade config:
sudo nixos-rebuild switch --upgrade
Clean unused configs:
sudo nix-collect-garbage -d
Update hardware config:
nixos-generate-config --dir /etc/nixos/machines/local
Encrypt secrets
sops --encrypt secrets.json > secrets.enc.json
Decrypt secrets
sops --decrypt secrets.enc.json > secrets.json
Get last versions of vscode extensions
curl https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/applications/editors/vscode/extensions/update_installed_exts.sh | bash > vscode_ext.nix