Go to file
2024-01-14 22:17:15 -08:00
home-manager [nb] Commit 2024-01-14 22:07:28 -08:00
hosts Switch from stylix which auto-generates themes to nix-colors which allows manual color assignment. Added gtk-nix flake to assist with nix-colors and gtk. 2024-01-14 19:09:07 -08:00
nixos [nb] Commit 2024-01-14 22:07:28 -08:00
todos [nb] Edit: todos/20240114221107.todo.md 2024-01-14 22:17:15 -08:00
.gitignore Added some packages, added some ssh and vim configurations, sorted packages in categories, and adjusted config with buckwheat hardware changes 2023-12-13 18:03:02 -08:00
.index [nb] Commit 2024-01-14 22:12:48 -08:00
flake.lock Switch from stylix which auto-generates themes to nix-colors which allows manual color assignment. Added gtk-nix flake to assist with nix-colors and gtk. 2024-01-14 19:09:07 -08:00
flake.nix Switch from stylix which auto-generates themes to nix-colors which allows manual color assignment. Added gtk-nix flake to assist with nix-colors and gtk. 2024-01-14 19:09:07 -08:00
README.md Created cmus_refresh_library systemd user timer. 2023-12-03 18:25:44 -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

Method 1

  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.

Method 2

  1. Boot into live NixOS disk
  2. Install NixOS
  3. Add the following changes:
environment.systemPackages = with pkgs; [
  git
];
services.openssh.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
  1. Run the following command:
sudo nixos-rebuild switch
  1. Grab the IP address with the following command:
ip addr
  1. Copy a flake repo from the host machine:
rsync -avz <repo directory> <user>@<ip addr>:

Nix commands to remember

nix flake update
nix run nixpkgs#<package>

Resources