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`