From 27d57a6c26c283970ffa0c553c0e950e1d79cede Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler <71695780+ellmau@users.noreply.github.com> Date: Wed, 3 Nov 2021 23:20:31 +0100 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a30d4e7..90058b1 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,11 @@ # Nix-configuration -## Installing on a system: - +## Deploy on a new machine * setup the filesystem as you see fit -* run `nixos-generate-config --root /mnt` -* create a new folder in machine for the system configuration -* create a symlink in the machine folder to the actual machine, called current - > e.g. $/etc/nixos/machine/> ln -s nucturne/ current -* add home-manager channel to the channel list (nix-channel add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manage) -* install the system (nixos-install --no-root-passwd) - -## Steps to fully finish home-setup: - -* add unlock-secret to secret-store (secret-tool store --label='keepassxc' keepass unlock) -* add certs and keyfiles - -## Hardware specifics - https://github.com/NixOS/nixos-hardware +* check out repository to `/mnt/etc/nixos` +* cd into `/mnt/etc/nixos` +* run 'nixos-generate-config --root /mnt' (Note: it won't overwrite the configuration.nix in the folder) +* create `machine//default.nix` +* add machine specific configuration to `default.nix` +* move `hardware-configuration.nix` to `machine//hardware-configuration.nix` +* run `nixos-install --no-root-passwd --flake .#hostname`