Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vim /etc/nixos/configuration.nix
- boot.supportedFilesystems = [ "zfs" ];
- nixos-rebuild switch
- gdisk /dev/sda
- Create +16M bios boot, code ef02, set name bios
- Create +500M boot, set name boot
- Create +500M swap, code 8200, set name swap
- Create reset of disk part, code a502, set name zfs
- zpool create -o ashift=12 -o altroot=/mnt tank /dev/disk/by-partlabel/zfs
- zfs create -o mountpoint=none tank/root
- zfs create -o mountpoint=legacy tank/root/nixos
- zfs create -o mountpoint=legacy tank/root/home
- zfs set compression=lz4 tank
- mount -t zfs tank/root/nixos /mnt
- mkdir /mnt/home
- mount -t zfs tank/root/home /mnt/home
- mkfs.ext4 -m 0 -j -L boot /dev/disk/by-partlabel/boot
- mkdir /mnt/boot
- mount /dev/disk/by-partlabel/boot /mnt/boot
- nixos-generate-config --root /mnt
- vim /mnt/etc/nixos/configuration.nix
- :read !hostid
- boot.loader.grub.device = "/dev/disk/by-partlabel/boot";
- boot.supportedFilesystems = [ "zfs" ];
- networking.hostId = "<the host id from the hostid command>";
- nixos-install
Advertisement
Add Comment
Please, Sign In to add comment