Skip to content

Commit 3818996

Browse files
committed
fix nomad-driver-podman
1 parent b174bd3 commit 3818996

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

nix/metal/bitteProfile/podman.nix

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,34 @@
55
pkgs,
66
dockerAuth,
77
...
8-
}: {
8+
}: let
9+
nomad-driver-podman = pkgs.buildGo117Module rec {
10+
pname = "nomad-driver-podman";
11+
version = "0.4.0";
12+
13+
src = pkgs.fetchFromGitHub {
14+
owner = "dermetfan";
15+
repo = "nomad-driver-podman";
16+
rev = "9207824392881669853254a185216473e2a9e194";
17+
sha256 = "sha256-QB5e406AA5hAkmiFqv6fjDzrqNEIb0AWCS0jFQyyGLA=";
18+
};
19+
20+
vendorSha256 = "sha256-5PQIWSGSR5vizWEsResBLd//yWs99o/bj5DVpRMBwhA=";
21+
22+
subPackages = ["."];
23+
24+
# some tests require a running podman service
25+
doCheck = false;
26+
27+
meta = with lib; {
28+
homepage = "https://www.github.com/hashicorp/nomad-driver-podman";
29+
description = "Podman task driver for Nomad";
30+
platforms = platforms.linux;
31+
license = licenses.mpl20;
32+
maintainers = with maintainers; [manveru];
33+
};
34+
};
35+
in {
936
# Avoid errors due to default overlay driver and zfs systemd execStart opt from showing in cli cmds.
1037
# Ref: https://github.com/NixOS/nixpkgs/issues/145261#issuecomment-964855713
1138
virtualisation.containers.storage.settings.storage = {
@@ -27,15 +54,15 @@
2754

2855
networking.firewall.trustedInterfaces = ["podman0"];
2956

30-
systemd.services.nomad.path = [pkgs.podman];
57+
systemd.services.nomad.path = [nomad-driver-podman];
3158
systemd.services.nomad.environment.REGISTRY_AUTH_FILE = dockerAuth;
3259

3360
services.nomad.pluginDir = lib.mkForce (let
3461
dir = pkgs.symlinkJoin {
3562
name = "nomad-plugins";
3663
paths = [
3764
inputs.nomad-driver-nix.defaultPackage.x86_64-linux
38-
pkgs.nomad-driver-podman
65+
nomad-driver-podman
3966
];
4067
};
4168
in "${dir}/bin");

0 commit comments

Comments
 (0)