Personal NixOS configuration managed with flakes. Heavily inspired by Vimjoyer work.
1 - Clone the repository
2 - Remove the existing hardware configuration if you want to use an already defined host: rm -f hosts/<host>/hardware-configuration.nix
3 - Regenerate the hardware configuration if you want to use an already defined host: sudo nixos-generate-config --show-hardware-config > hosts/<host>/hardware-configuration.nix
4 - Switch to the new configuration: sudo nixos-rebuild switch --flake .#<host>
1 - Clone the repository
2 - Do ur stuff
X - 1 - Generate the hardware configuration: sudo nixos-generate-config --show-hardware-config > hosts/<host>/hardware-configuration.nix
X - Switch to the new configuration: sudo nixos-rebuild switch --flake .#<host>