Skip to content

Instantly share code, notes, and snippets.

View ja0nz's full-sized avatar

ja.nz ja0nz

View GitHub Profile
@ja0nz
ja0nz / nixos-encrypted-zfs.sh
Created March 26, 2020 16:43
How I installed Encrypted ZFS root on NixOS
#!/bin/sh
# FIRST STOP THE zfs-zed SERVICE
systemctl stop zfs-zed
# FORCE UNLOAD ZFS KERNEL MODULES
lsmod | grep zfs | cut -d' ' -f1 | xargs rmmod -f
# NOW ADD THE FOLLOWING TO /etc/nixos/configuration.nix
#