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:
parent
26bc757650
commit
27d57a6c26
24
README.md
24
README.md
@ -1,19 +1,11 @@
|
|||||||
# Nix-configuration
|
# Nix-configuration
|
||||||
|
|
||||||
## Installing on a system:
|
## Deploy on a new machine
|
||||||
|
|
||||||
* setup the filesystem as you see fit
|
* setup the filesystem as you see fit
|
||||||
* run `nixos-generate-config --root /mnt`
|
* check out repository to `/mnt/etc/nixos`
|
||||||
* create a new folder in machine for the system configuration
|
* cd into `/mnt/etc/nixos`
|
||||||
* create a symlink in the machine folder to the actual machine, called current
|
* run 'nixos-generate-config --root /mnt' (Note: it won't overwrite the configuration.nix in the folder)
|
||||||
> e.g. $/etc/nixos/machine/> ln -s nucturne/ current
|
* create `machine/<machine-name>/default.nix`
|
||||||
* 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)
|
* add machine specific configuration to `default.nix`
|
||||||
* install the system (nixos-install --no-root-passwd)
|
* move `hardware-configuration.nix` to `machine/<machine-name>/hardware-configuration.nix`
|
||||||
|
* run `nixos-install --no-root-passwd --flake .#hostname`
|
||||||
## 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
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user