aboutsummaryrefslogtreecommitdiff
path: root/example/example.hcl
blob: dee0e0ee008c968d3125a2c83362a3bc2282fd71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
job "example" {
  datacenters = ["dc1"]
  type        = "batch"

  group "example" {
    task "test-nix-hello" {
      driver = "nix2"

      config {
        command = "sh"
        args = [
          "-c",
          "pwd; ls -l *; mount; hello"
        ]
        packages = [
          "github:NixOS/nixpkgs#coreutils",
          "github:NixOS/nixpkgs#bash",
          "github:NixOS/nixpkgs#hello"
          ]
      }
      user = "lx"
    }
  }
}