# iiogama's Personal NixOS/Home-Manager Configuration ## How to build existing system with flake ``` cd sudo nixos-rebuild switch --flake ".#" ``` ## How to install new system with flake 1. Boot into live NixOS disk and run the following commands: ``` sudo su nix-env -iA nixos.git git clone /mnt/etc/nixos nixos-install --flake ".#" ``` 2. Reboot machine, log in, and run the following commands: ``` sudo rm -r /etc/nixos/configuration.nix ``` 3. Move build to desired location. ## Nix commands to remember ``` nix flake update nix run nixpkgs# ```