After some effort (and asking for help on the nix-dev mailing list) I installed ZFS on an encrypted partition. The relevant configuration is below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # 1. boot from live cd, with programs.gpg enabled | |
| # 2. gpg --import /your/public/key | |
| # 3. edit GPG_ID, DISK below | |
| # 4. run script | |
| # | |
| set -euo pipefail | |
| GPG_ID="foo@bar.com" | |
| DISK="/dev/disk/by-id/..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Crude quarter tiling tool | |
| # Installation: | |
| # Move file to: /usr/local/bin/quarter-tiler | |
| # Make executable: sudo chmod +x /usr/local/bin/quarter-tiler | |
| # Assign keyboard shortcuts to commands like "quarter-tiler topleft" | |
| # Margins around windows (elementary OS native apps) (HiDPI) | |
| MARGIN_TOP=130 |