36 lines
730 B
Org Mode
36 lines
730 B
Org Mode
* Installing
|
|
|
|
** Fresh system (nixos USB drive)
|
|
|
|
1. Open a nix-shell with git:
|
|
#+BEGIN_SRC bash
|
|
nix-shell -p git
|
|
#+END_SRC
|
|
|
|
1. Clone the flake
|
|
#+BEGIN_SRC bash
|
|
git clone https://git.lajuntament.space/marc/samfelag.git
|
|
#+END_SRC
|
|
|
|
1. Partition the disk
|
|
1. Locate the disk
|
|
#+BEGIN_SRC bash
|
|
lsblk
|
|
#+END_SRC
|
|
|
|
1. Mount the filesystems
|
|
|
|
1. Create the host nix configuration
|
|
If the host is not present under system/hosts, create a new folder for the host.
|
|
Generate the hardware configuration file, you can use nixos-generate-config as a base:
|
|
|
|
#+BEGIN_SRC bash
|
|
nixos-generate-config --dir <<host directory>> --no-filesystems
|
|
#+END_SRC
|
|
|
|
1. Install nixos!
|
|
|
|
#+BEGIN_SRC bash
|
|
sudo nixos-install --impure --flake .#reykjavik
|
|
#+END_SRC
|