Skip to content

Instantly share code, notes, and snippets.

@fpletz
Created February 23, 2021 21:43
Show Gist options
  • Save fpletz/e7b3ab5f5b7a1d1dae9e4e63859d64df to your computer and use it in GitHub Desktop.
Save fpletz/e7b3ab5f5b7a1d1dae9e4e63859d64df to your computer and use it in GitHub Desktop.
nixos docker zfs
{
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";
};
};
};
}
@madper
Copy link

madper commented Nov 7, 2021

Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment