configuration.nix/hosts/skipper/virtualisation.nix

25 lines
526 B
Nix

{ pkgs, ... }: {
environment.systemPackages = [ pkgs.docker-credential-helpers ];
virtualisation = {
docker = {
enable = true;
package = pkgs.docker_26;
rootless = {
enable = true;
setSocketVariable = true;
};
storageDriver = "btrfs";
};
kvmgt.enable = true;
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
ovmf = {
enable = true;
packages = [ pkgs.OVMFFull.fd ];
};
};
};
};
}