wip podman on h001

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-04-29 17:15:19 -05:00
parent d5ce9cd3eb
commit b0ca7ab8d7
6 changed files with 186 additions and 42 deletions

View file

@ -1,4 +1,8 @@
{ ... }:
{ config, lib, ... }:
let
ccfg = import ../config.nix;
cfg = config.${ccfg.custom_config_key}.programs;
in
{
imports = [
./qFlipper.nix
@ -7,6 +11,31 @@
./tailnet.nix
./ssh.nix
./docker.nix
./podman.nix
./incus.nix
];
config = {
assertions = [
(
let
enabledVirtualizers = lib.filter (x: x.enabled) [
{
name = "docker";
enabled = cfg.docker.enable;
}
{
name = "podman";
enabled = cfg.podman.enable;
}
];
in
{
assertion = lib.length enabledVirtualizers <= 1;
message =
"Only one virtualizer can be enabled at a time. Enabled: "
+ lib.concatStringsSep ", " (map (x: x.name) enabledVirtualizers);
}
)
];
};
}