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