This is my personal NixOS/home-manager configuration.
DISCLAIMER: Since I'm a Nix noob, please do not expect any useful stuff here.
sudo nixos-rebuild switch --flake .Generate hardware-configuration.nix for remote host:
nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./nixos/clara-mbp/hardware-configuration.nix --flake .#clara-mbp --target-host nixos@[IP]Rebuild nixos configuration on remote host when SSH root login is allowed:
nixos-rebuild switch --target-host root@[IP] --flake .#clara-mbpOr if root login isn't allowed:
nixos-rebuild switch --target-host clara@[IP] --use-remote-sudo --flake .#clara-mbp