Created
February 23, 2021 21:43
-
-
Save fpletz/e7b3ab5f5b7a1d1dae9e4e63859d64df to your computer and use it in GitHub Desktop.
nixos docker zfs
This file contains 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
{ | |
systemd.services.docker.path = with pkgs; [ zfs ]; | |
services = { | |
docker = { | |
enable = true; | |
extraOptions = "--storage-driver zfs --exec-opt native.cgroupdriver=systemd --bip=192.168.234.1/24"; | |
autoPrune = { | |
enable = true; | |
dates = "weekly"; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!