aboutsummaryrefslogtreecommitdiff
path: root/example/example2.hcl
blob: 8b56f8aa76f714162a89b2f2d2039a71041dc6ba (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
25
26
27
28
job "example2" {
  datacenters = ["dc1"]
  type        = "service"

  group "example" {
    task "server" {
      driver = "nix2"

      config {
        packages = [
          "github:nixos/nixpkgs#python3",
          "github:nixos/nixpkgs#bash",
          "github:nixos/nixpkgs#coreutils",
          "github:nixos/nixpkgs#curl",
          "github:nixos/nixpkgs#nix",
          "github:nixos/nixpkgs#git",
          "github:nixos/nixpkgs#cacert",
          "github:nixos/nixpkgs#strace",
          "github:nixos/nixpkgs#gnugrep",
          "github:nixos/nixpkgs#mount",
        ]
        command = "python3"
        args = [ "-m", "http.server", "8080" ]
      }
      user = "lx"
    }
  }
}