1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Update README.md

This commit is contained in:
Stefan Ellmauthaler 2021-11-03 23:20:31 +01:00 committed by GitHub
parent 26bc757650
commit 27d57a6c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/<machine-name>/default.nix`
* add machine specific configuration to `default.nix`
* move `hardware-configuration.nix` to `machine/<machine-name>/hardware-configuration.nix`
* run `nixos-install --no-root-passwd --flake .#hostname`