Skip to content

Instantly share code, notes, and snippets.

View cyrinux's full-sized avatar
💻
Developing cool stuff !

Cyril Levis cyrinux

💻
Developing cool stuff !
View GitHub Profile
@cyrinux
cyrinux / nixos-encrypted-zfs.sh
Created November 27, 2020 10:09 — forked from dysinger/nixos-encrypted-zfs.sh
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
#