ZFS: Difference between revisions
imported>Cyounkins Under ZED, moved msmtp doc into separate page |
imported>Aidalgol →Installing NixOS on a ZFS root filesystem: Simplify guide |
||
Line 280: | Line 280: | ||
=== Laying out the filesystem hierarchy === | === Laying out the filesystem hierarchy === | ||
==== Create the ZFS pool ==== | ==== Create the ZFS pool ==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 317: | Line 312: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Create the datasets for the operating system. | Create the datasets for the operating system. (Experienced ZFS users may wish to split up the OS datasets further.) | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo zfs create -o canmount= | sudo zfs create -o canmount=on -o mountpoint=/ rpool/nixos | ||
sudo zfs create | sudo zfs create rpool/nixos/nix | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 395: | Line 385: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
swapDevices = [ | swapDevices = [ | ||
{ device = "/dev/disk/by-id/ | { device = "/dev/disk/by-id/DISK1-part2"; | ||
randomEncryption = true; | randomEncryption = true; | ||
} | } | ||
{ device = "/dev/disk/by-id/ | { device = "/dev/disk/by-id/DISK2-part2"; | ||
randomEncryption = true; | randomEncryption = true; | ||
} | } |