29 lines
691 B
Nix
29 lines
691 B
Nix
{ config, lib, pkgs, ... }: {
|
|
virtualisation = {
|
|
podman = {
|
|
enable = true;
|
|
# Enable CDI (Container Device Interface) for GPU support
|
|
enableNvidia = true;
|
|
};
|
|
|
|
docker = {
|
|
rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
# Enable CDI (Container Device Interface) for GPU support
|
|
enableNvidia = true;
|
|
};
|
|
# For compatability, and for some reason this isn't able to be per
|
|
# container?
|
|
oci-containers.backend = "docker";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# Nicely Make and Run Container Sets
|
|
podman-compose
|
|
# For Running Simulations Containerized
|
|
apptainer
|
|
];
|
|
}
|