From 043c21cc8b250ba7a52e0562fc458f3d860bf5aa Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Wed, 21 Jan 2026 17:57:30 -0500 Subject: [PATCH] Update README.md to include standalone home manager instructions --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02179a7..9c64d7e 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ 1) Install [NixOS](https://nixos.org/) from an ISO via USB 2) Reboot machine -3) Edit /etc/nixos/configuration and add `git` to packages +3) Edit `/etc/nixos/configuration` and add `git` to packages 4) Clone this repo 5) Copy new `host/` configuration for the new machine -6) Copy /etc/nixos/hardware-configuration to `host//hardware.nix` +6) Copy `/etc/nixos/hardware-configuration` to `host//hardware.nix` 7) Edit `flake.nix` to point to the new `host` 8) `git add .` 9) Run `sudo nixos-rebuild switch --flake .#nixos` @@ -17,6 +17,22 @@ https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf # Building NixOS ISO `nix build .#nixosConfigurations.live.config.system.build.isoImage` +# Using Standalone Home Manager +1) Install [Nix](https://nixos.org/) via: + +` +sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon +` + +2) Create `~/.config/nix/nix.conf` file with the following contents to enable the use of flakes: +``` +experimental-features = nix-command flakes +``` +3) Install `git` +4) Clone this repo +5) Edit `flake.nix` variables as needed +6) `home-manager switch --flake .` + # Misc ## Garbage collection `nix-collect-garbage -d`