Go to file
2023-11-23 14:26:54 -08:00
home-manager "Added vm home configuration and changed vm username back to ii" 2023-11-23 14:26:54 -08:00
hosts "Added vm home configuration and changed vm username back to ii" 2023-11-23 14:26:54 -08:00
nixos Edited PS1 to end with a newline, added phetch package to nixos/cli.nix, and edited sxhkd volume controls to one line 2023-11-23 10:58:06 -08:00
build.log Committing changes to test build 2023-10-31 06:36:29 -07:00
flake.lock Committing changes to test build 2023-10-31 06:36:29 -07:00
flake.nix Switched to NixOS unstable branch 2023-08-02 07:10:29 -07:00
README.md Added some packages to nixos/cli.nix 2023-11-22 22:24:22 -08:00
todo.md Added some packages to nixos/cli.nix 2023-11-22 22:24:22 -08: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 update existing system's packages

sudo nixos-rebuild switch --flake ".#<hostname>" --update-input nixpkgs --commit-lock-file

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>

Resources