blob: 3ecc9a5fb6856896d0bd0702c13b93def316d69d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.features.virtualisation;
in {
options.features.virtualisation = {
enable = lib.mkEnableOption "enable podman";
};
config.virtualisation = lib.mkIf cfg.enable {
podman = {
enable = true;
enableNvidia = lib.mkDefault (builtins.elem "nvidia" (config.services.xserver.videoDrivers or []));
extraPackages = with pkgs; [podman-compose];
autoPrune.enable = true;
};
oci-containers.backend = "podman";
};
}
|