# update config
home-manager switch
# update nixpkgs in flake
nix flake update
# run home-manager switch after
# nixfmt (from hm base directory)
nixfmt $(find . -name "*.nix")
sudo su
nix-env --install --file '<nixpkgs>' --attr nix cacert -I nixpkgs=channel:nixpkgs-unstable
systemctl daemon-reload
systemctl restart nix-daemon