Skip to content

Commit 1be1e0e

Browse files
committed
fix target option
1 parent 87312ff commit 1be1e0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/install-script/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ inputs: {
1010
with types; {
1111
enable =
1212
mkEnableOption "Create deployment script at `config.system.build.spoInstallScript`.";
13-
target-dns = mkOption {
13+
target = mkOption {
1414
type = nullOr str;
1515
default = null;
1616
example = "root@128.196.0.1";
1717
description = ''
18-
The target DNS address to deploy to. Overwritten by a command line argument.
18+
The target address to deploy to, in the format <user>@<host>, where host is a DNS hostname. Overwritten by a command line argument.
1919
'';
2020
};
2121
};
@@ -46,7 +46,7 @@ inputs: {
4646
rm -rf "$tmp_keys"
4747
}
4848
49-
target="${builtins.toString (config.spo-anywhere.install-script.target-dns or "")}"
49+
target="${builtins.toString (config.spo-anywhere.install-script.target or "")}"
5050
5151
# todo: make target optional option
5252

tests/install-script.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ in {
174174
install-script {
175175
imports = [installing];
176176
config = {
177-
spo-anywhere.install-script.target-dns = "some-invalid-garbage";
177+
spo-anywhere.install-script.target = "some-invalid-garbage";
178178
};
179179
}
180180
);
@@ -192,7 +192,7 @@ in {
192192
install-script {
193193
imports = [installing];
194194
config = {
195-
spo-anywhere.install-script.target-dns = "root@installed";
195+
spo-anywhere.install-script.target = "root@installed";
196196
};
197197
}
198198
);

0 commit comments

Comments
 (0)