main @ 28 LINES
[ HISTORY ] [ UP ]
┌─ NIX ──────────────────────────────────────────────────────────────────────┐
│ { │
│ lib, │
│ config, │
│ ... │
│ }: let │
│ inherit (lib) mkIf getExe; │
│ inherit (config.ooknet.server) ookflix; │
│ inherit (config.virtualisation) podman; │
│ podmanCommand = getExe podman.package; │
│ in { │
│ config = mkIf ookflix.enable { │
│ systemd.services = { │
│ "podman-ookflix-network" = { │
│ serviceConfig = { │
│ Type = "oneshot"; │
│ RemainAfterExit = true; │
│ SyslogIdentifier = "%N"; │
│ }; │
│ unitConfig = { │
│ "RequiresMountsFor" = "%t/containers"; │
│ }; │
│ wantedBy = ["multi-user.target"]; │
│ script = "${podmanCommand} network create --ignore --driver=bridge ookflix │
│ "; │
│ }; │
│ }; │
│ }; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ NIX ────────────────────────────────┐
│ { │
│ lib, │
│ config, │
│ ... │
│ }: let │
│ inherit (lib) mkIf getExe; │
│ inherit (config.ooknet.server) ookflix; │
│ inherit (config.virtualisation) podman; │
│ podmanCommand = getExe podman.package; │
│ in { │
│ config = mkIf ookflix.enable { │
│ systemd.services = { │
│ "podman-ookflix-network" = { │
│ serviceConfig = { │
│ Type = "oneshot"; │
│ RemainAfterExit = true; │
│ SyslogIdentifier = "%N"; │
│ }; │
│ unitConfig = { │
│ "RequiresMountsFor" = "%t/containe │
│ rs"; │
│ }; │
│ wantedBy = ["multi-user.target"]; │
│ script = "${podmanCommand} network c │
│ reate --ignore --driver=bridge ookflix"; │
│ }; │
│ }; │
│ }; │
│ } │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET