Update readme
This commit is contained in:
parent
35590ce3ed
commit
085d3b558f
45
README.md
45
README.md
@ -2,17 +2,42 @@
|
|||||||
These are my configurations for nixos. You are free to use it, however it may be best for you to fork and make your own.
|
These are my configurations for nixos. You are free to use it, however it may be best for you to fork and make your own.
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
In my experience, you need a larger disk size for the nix store on the installer than is created. As such, I use a NFS mount with a swap file. If you are installing using an USB stick, you can probably place a swap file there.
|
In my experience, you need a larger disk size for the nix store on the installer than is created. As such, I use a swap file/drive, recommended separate drive from the one being installed to.
|
||||||
|
|
||||||
|
### Swap example.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix-shell -p git nfs-utils
|
mkdir /mnt/usb
|
||||||
mkdir /mnt/merged
|
mount /dev/sdb1 /mnt/usb
|
||||||
mount.nfs 10.0.0.5:/mnt/merged /mnt/merged
|
fallocate -l 30G /mnt/usb/swap
|
||||||
mkdir /mnt/merged/nixos-tmp
|
chmod 600 /mnt/usb/swap
|
||||||
fallocate -l 30G /mnt/merged/nixos-tmp/swap
|
mkswap /mnt/usb/swap
|
||||||
chmod 600 /mnt/merged/nixos-tmp/swap
|
swapon /mnt/usn/swap
|
||||||
mkswap /mnt/merged/nixos-tmp/swap
|
|
||||||
swapon /mnt/merged/nixos-tmp/swap
|
|
||||||
mount -o remount,size=20G,noatime /nix/.rw-store
|
mount -o remount,size=20G,noatime /nix/.rw-store
|
||||||
|
```
|
||||||
|
|
||||||
|
### The install process.
|
||||||
|
|
||||||
|
After setting up the extra swap space, clone and enter the nixos repo.
|
||||||
|
```bash
|
||||||
|
nix-shell -p git
|
||||||
git clone --recursive https://github.com/GRMrGecko/nixos.git
|
git clone --recursive https://github.com/GRMrGecko/nixos.git
|
||||||
```
|
cd nixos/
|
||||||
|
```
|
||||||
|
|
||||||
|
After you get into the repo, configure the machine to your liking.
|
||||||
|
```bash
|
||||||
|
./configure.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
After configuring, install. You can define a tmpdir as the USB drive with `TMPDIR=/mnt/usb` if you want to reduce load on RAM.
|
||||||
|
```bash
|
||||||
|
./install.sh --disk main /dev/sda
|
||||||
|
```
|
||||||
|
|
||||||
|
After install is complete, you can then rsync the nixos dir to the user account on the install:
|
||||||
|
```bash
|
||||||
|
nix-shell -p rsync
|
||||||
|
mount -o compress=zstd /dev/mapper/crypted /mnt/hdd
|
||||||
|
rsync -av /root/nixos/ /mnt/hdd/home/grmrgecko/nixos/
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user