blob: db17c8bdf5644fd906fd697b3a5bc798e3cbe0cd (
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.getchoo.features.virtualisation;
inherit (lib) mkEnableOption mkIf;
in {
options.getchoo.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";
};
}
|