diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-29 11:41:40 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-29 11:41:40 +0100 |
commit | ec3eba576a1a9574c6a2be8d90d973badb34f455 (patch) | |
tree | 5e139459046f23b00abdb4501bb9cf82bdefb722 /example/example2.hcl | |
parent | 50412d4cf0c2ae780bc8a1acce8dd7aa1d0b19b0 (diff) | |
download | nomad-driver-nix2-ec3eba576a1a9574c6a2be8d90d973badb34f455.tar.gz nomad-driver-nix2-ec3eba576a1a9574c6a2be8d90d973badb34f455.zip |
Ability to run Nix jobs
Diffstat (limited to 'example/example2.hcl')
-rw-r--r-- | example/example2.hcl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/example/example2.hcl b/example/example2.hcl new file mode 100644 index 0000000..8b56f8a --- /dev/null +++ b/example/example2.hcl @@ -0,0 +1,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" + } + } +} |