move docker stuff to persist
This commit is contained in:
parent
8344439457
commit
581bab96c3
2 changed files with 8 additions and 2 deletions
|
@ -8,7 +8,6 @@ _: {
|
|||
"/var/cache/fwupd"
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/btrfs"
|
||||
"/var/lib/docker"
|
||||
"/var/lib/fwupd"
|
||||
"/var/lib/iwd"
|
||||
"/var/lib/libvirt"
|
||||
|
|
|
@ -2,11 +2,18 @@
|
|||
environment.systemPackages = [ pkgs.docker-credential-helpers ];
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
package = pkgs.docker_26;
|
||||
daemon.settings = {
|
||||
data-root = "/persist/docker";
|
||||
};
|
||||
rootless = {
|
||||
enable = true;
|
||||
package = pkgs.docker_26;
|
||||
setSocketVariable = true;
|
||||
daemon.settings = {
|
||||
data-root = "/persist/home/docker";
|
||||
};
|
||||
};
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue