File tree Expand file tree Collapse file tree 1 file changed +26
-9
lines changed Expand file tree Collapse file tree 1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,37 @@ Or just download it here: https://davidak.de/tmp/nixos-17.09.git.226a295-x86_64-
12
12
13
13
## Install NixOS on bcachefs
14
14
15
- ** WIP**
15
+ ### Create ` dos ` partitions
16
+
17
+ - 400 MB /boot (set boot flag)
18
+ - 1.6 GB SWAP
19
+ - 10 GB /
16
20
17
21
cfdisk /dev/sda
22
+
23
+ #### Create filesystems
24
+
18
25
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
+
20
31
mount -t bcachefs /dev/sda2 /mnt
21
32
mkdir /mnt/boot
22
33
mount /dev/disk/by-label/boot /mnt/boot
34
+ swapon /dev/disk/by-label/swap
35
+
36
+ #### Create and edit Config
37
+
23
38
nixos-generate-config --root /mnt
24
39
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)
You can’t perform that action at this time.
0 commit comments