nixosMod/extends: add virtualisation.podman.compose.enable
parent
ebd3ceade9
commit
8710890aed
@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
# files
|
||||
./podman.nix
|
||||
];
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.services.podman;
|
||||
in
|
||||
{
|
||||
options.virtualisation.podman = {
|
||||
compose.enable = lib.mkEnableOption "podman-compose";
|
||||
};
|
||||
config.environment.systemPackages = lib.mkIf (cfg.enable && cfg.compose.enable) [
|
||||
pkgs.podman-compose
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue