2022-11-28 16:06:00 +00:00
|
|
|
job "example" {
|
|
|
|
datacenters = ["dc1"]
|
|
|
|
type = "batch"
|
|
|
|
|
|
|
|
group "example" {
|
2022-11-28 17:30:33 +00:00
|
|
|
task "test-nix-hello" {
|
2022-11-29 10:41:40 +00:00
|
|
|
driver = "nix2"
|
2022-11-28 16:06:00 +00:00
|
|
|
|
|
|
|
config {
|
2022-11-29 10:41:40 +00:00
|
|
|
command = "sh"
|
2022-11-28 17:08:02 +00:00
|
|
|
args = [
|
2022-11-29 10:41:40 +00:00
|
|
|
"-c",
|
|
|
|
"pwd; ls -l *; mount; hello"
|
|
|
|
]
|
|
|
|
packages = [
|
|
|
|
"github:NixOS/nixpkgs#coreutils",
|
|
|
|
"github:NixOS/nixpkgs#bash",
|
2022-11-28 17:08:02 +00:00
|
|
|
"github:NixOS/nixpkgs#hello"
|
|
|
|
]
|
2022-11-28 16:06:00 +00:00
|
|
|
}
|
2022-11-28 17:08:02 +00:00
|
|
|
user = "lx"
|
2022-11-28 16:06:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|