ZFS: Difference between revisions

imported>Sjau
Adding ZFS Trimming
imported>Fadenb
m With RAID: removed no longer needed step to activate zfs support
Line 222: Line 222:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# Add the zfs filesystem to the install environment (note this is no longer
# Verify that the installer environment has loaded the ZFS kernel module (default 18.09)
# necessary since nixOS 18.09, as the install environment comes with
lsmod | grep zfs
# zfs enabled by default):
nano /etc/nixos/configuration.nix
 
## ---8<-------------------------8<---
  boot.supportedFilesystems = [ "zfs" ];
## ---8<-------------------------8<---
 
nixos-rebuild switch
 
# Load the just installed ZFS kernel module
modprobe zfs


# Create boot partition and (zfs) data partition
# Create boot partition and (zfs) data partition