Go to file
2023-07-30 21:21:32 -07:00
config Initial commit 2023-07-30 21:21:32 -07:00
hosts Initial commit 2023-07-30 21:21:32 -07:00
patches Initial commit 2023-07-30 21:21:32 -07:00
flake.lock Initial commit 2023-07-30 21:21:32 -07:00
flake.nix Initial commit 2023-07-30 21:21:32 -07:00
README.md Initial commit 2023-07-30 21:21:32 -07:00

iiogama's Personal NixOS/Home-Manager Configuration

How to build existing system with flake

cd <build repo>
sudo nixos-rebuild switch --flake ".#<hostname>"

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 <repo url> /mnt/etc/nixos
nixos-install --flake ".#<host>"
  1. Reboot machine, log in, and run the following commands:
sudo rm -r /etc/nixos/configuration.nix
  1. Move build to desired location.

Nix commands to remember

nix flake update
nix run nixpkgs#<package>