feat: big refactor
This commit is contained in:
parent
2c09c21833
commit
ebedec9768
159 changed files with 1927 additions and 2222 deletions
32
modules/core/virtualisation.nix
Normal file
32
modules/core/virtualisation.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.mkIf config.bchmnn.collections.virtualisation.enable {
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
/*
|
||||
podman = {
|
||||
enable = true;
|
||||
# create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
dockerCompat = true;
|
||||
# required for containers under podman-compose to be able to talk to each other.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
*/
|
||||
docker = {
|
||||
enable = true;
|
||||
};
|
||||
oci-containers = {
|
||||
backend = "docker";
|
||||
# backend = "podman";
|
||||
};
|
||||
containers = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
hardware.nvidia-container-toolkit.enable = config.bchmnn.nvidia.enable;
|
||||
environment.systemPackages = with pkgs; [ virtiofsd ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue