Skip to content

Commit eb4c794

Browse files
authored
Update README.md
1 parent 4aa2e44 commit eb4c794

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

install-iso-bcachefs/README.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,37 @@ Or just download it here: https://davidak.de/tmp/nixos-17.09.git.226a295-x86_64-
1212

1313
## Install NixOS on bcachefs
1414

15-
**WIP**
15+
### Create `dos` partitions
16+
17+
- 400 MB /boot (set boot flag)
18+
- 1.6 GB SWAP
19+
- 10 GB /
1620

1721
cfdisk /dev/sda
22+
23+
#### Create filesystems
24+
1825
mkfs.ext4 -L boot /dev/sda1
19-
mkfs.bcachefs -L nixos /dev/sda2
26+
mkswap -L swap /dev/sda2
27+
mkfs.bcachefs -L nixos /dev/sda3
28+
29+
#### Mount filesystems
30+
2031
mount -t bcachefs /dev/sda2 /mnt
2132
mkdir /mnt/boot
2233
mount /dev/disk/by-label/boot /mnt/boot
34+
swapon /dev/disk/by-label/swap
35+
36+
#### Create and edit Config
37+
2338
nixos-generate-config --root /mnt
2439
nano /mnt/etc/nixos/configuration.nix
25-
nix-channel --update
26-
nix-env -iA nixos.gitAndTools.gitFull
27-
git clone https://github.com/davidak/nixpkgs.git
28-
cd nixpkgs/
29-
git checkout bcachefs
30-
NIX_PATH=nixpkgs=/root/nixpkgs/ nixos-install
31-
history
40+
41+
I'm not sure if `boot.supportedFilesystems = [ "bcachefs" ];` is needed but i have set it and it works.
42+
43+
#### Install NixOS
44+
45+
nixos-install
46+
reboot
47+
48+
(can take more than 1 hour since the kernel is compiled)

0 commit comments

Comments
 (0)