2024-06-21 22:02:51 +05:30
|
|
|
{ config, pkgs, ... }: {
|
2024-01-05 18:50:42 +05:30
|
|
|
environment.systemPackages = [ pkgs.docker-credential-helpers ];
|
2023-03-15 22:11:59 +05:30
|
|
|
virtualisation = {
|
2023-03-15 22:48:55 +05:30
|
|
|
docker = {
|
2024-06-21 22:08:59 +05:30
|
|
|
enable = true;
|
2024-06-20 13:50:48 +05:30
|
|
|
package = pkgs.docker_26;
|
2024-06-21 20:05:14 +05:30
|
|
|
daemon.settings = {
|
|
|
|
data-root = "/persist/docker";
|
2024-06-21 22:02:51 +05:30
|
|
|
dns = [
|
|
|
|
# Quad9, without DoT
|
|
|
|
"2620:fe::fe"
|
|
|
|
"9.9.9.9"
|
|
|
|
"2620:fe::9"
|
|
|
|
"149.112.112.112"
|
|
|
|
];
|
2024-06-21 20:05:14 +05:30
|
|
|
};
|
2024-06-21 19:48:33 +05:30
|
|
|
rootless = {
|
|
|
|
enable = true;
|
2024-06-21 22:02:51 +05:30
|
|
|
package = config.virtualisation.docker.package;
|
2024-06-21 19:48:33 +05:30
|
|
|
setSocketVariable = true;
|
2024-06-21 20:05:14 +05:30
|
|
|
daemon.settings = {
|
|
|
|
data-root = "/persist/home/docker";
|
2024-06-21 22:02:51 +05:30
|
|
|
dns = config.virtualisation.docker.daemon.settings.dns;
|
2024-06-21 20:05:14 +05:30
|
|
|
};
|
2024-06-21 19:48:33 +05:30
|
|
|
};
|
2023-03-15 22:48:55 +05:30
|
|
|
storageDriver = "btrfs";
|
|
|
|
};
|
2024-03-23 15:53:21 +05:30
|
|
|
kvmgt.enable = true;
|
|
|
|
libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
qemu = {
|
|
|
|
package = pkgs.qemu_kvm;
|
|
|
|
ovmf = {
|
|
|
|
enable = true;
|
|
|
|
packages = [ pkgs.OVMFFull.fd ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
}
|