nix-shell -p git git clone https://github.com/sumitftr/nixos-config.git cd nixos-configAdd host by doing:
./host-add <HOSTNAME> git add . sudo nixos-rebuild switch --flake .#<HOSTNAME>Link your configs by doing:
./init.nuFor updating package versions you have to update
flake.lockfile. To do that, run:nix flake update. Then stage theflake.lockfile, usinggit add -u.
Moving Configuration: Copy this flake to your preferred path. Run
./init.nuto recreate symlinks to your present configuration path. You can then delete the original flake.
Sometimes nixos doesn't allows user to rebuild your configuration due to ownership issues. To get around this problem, run:
sudo chown -R <USERNAME>:users .