You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-23Lines changed: 16 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,12 @@ nix build .#nynx
15
15
Run deployments:
16
16
17
17
```
18
-
nix run .#nynx -- --flake <flake-url> --operation <operation> --deployments <deployments-file>
18
+
nix run .#nynx -- --flake <flake-url> --operation <operation>
19
19
```
20
20
21
21
### Flags
22
22
23
23
-`--build-host`: Specify the host on which to build closures (default: `localhost`).
24
-
-`--deployments`: Path to the `deployments.nix` file (default: `deployments.nix`).
25
24
-`--flake`: Specify the flake path or URL (e.g., `github:alyraffauf/nixcfg`).
26
25
-`--jobs`: Comma-separated subset of jobs to run (default: all jobs).
27
26
-`--operation`: Operation to perform (`switch`, or `activate` for Darwin; `boot`, `test`, `switch` for NixOS).
@@ -42,31 +41,25 @@ Run specific deployment jobs:
42
41
nix run .#nynx -- --flake github:alyraffauf/nixcfg --operation switch --jobs server,workstation
43
42
```
44
43
45
-
### Sample deployments.nix
44
+
### Sample #nynxDeployments
46
45
47
-
Nynx is configured with a Nix attrset that defines a set of deployment jobs.
46
+
Nynx is configured with a Flake output containing an attrset that defines a set of deployment jobs. Outputs can be declared in the same Flake or in an upstream Flake.
48
47
49
48
```nix
50
49
{
51
-
job1 = {
52
-
output = "host1"; # Will be inferred from job name if not present.
53
-
hostname = "192.168.1.1"; # Also inferred from job name if not present.
54
-
type = "nixos";
55
-
user = "root";
56
-
};
57
-
58
-
job2 = {
59
-
output = "host2";
60
-
hostname = "website.com";
61
-
type = "nixos";
62
-
user = "root";
63
-
};
64
-
65
-
job2 = {
66
-
output = "host3";
67
-
hostname = "host3.local";
68
-
user = "root";
69
-
type = "darwin";
50
+
nynxDeployments = {
51
+
evergrande = {
52
+
hostname = "evergrande"; # Will be assumed from deployment name if not specified.
0 commit comments