refactor(host/orion): improve virtualisation setup

This commit is contained in:
Price Hiller 2024-06-26 09:38:38 -05:00
parent 1ce511e451
commit 946db03a5e
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 17 additions and 21 deletions

View File

@ -1,21 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
docker
docker-compose
];
virtualisation = {
oci-containers.backend = "docker";
containers.enable = true;
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
autoPrune.enable = true;
package = pkgs.docker;
};
};
}

View File

@ -16,6 +16,7 @@
"wheel"
"keyd"
(lib.mkIf config.virtualisation.docker.enable "docker")
(lib.mkIf config.virtualisation.libvirtd.enable "libvirtd")
];
group = "price";
shell = pkgs.zsh;

View File

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ docker-compose ];
programs.virt-manager.enable = true;
virtualisation = {
libvirtd.enable = true;
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
autoPrune.enable = true;
};
};
}