Move some zfs stuff around

This commit is contained in:
Charlotte Van Petegem 2020-11-15 13:06:50 +01:00
parent fcb5af7894
commit 3e09cc7444
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 6 additions and 11 deletions

View file

@ -1,11 +1,12 @@
{ ... }:
{
chvp.zfs.systemLinks = [
{ path = "/var/lib/docker"; type = "cache"; }
{ path = "/var/lib/docker/volumes"; type = "data"; }
];
virtualisation.docker.enable = true;
virtualisation.docker = {
enable = true;
extraOptions = "--data-root /data/var/lib/docker";
storageDriver = "zfs";
};
users.users.charlotte.extraGroups = [
"docker"
];