Skip to content

Commit

Permalink
fix target option
Browse files Browse the repository at this point in the history
  • Loading branch information
brainrake committed Nov 27, 2024
1 parent 87312ff commit 1be1e0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/install-script/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ inputs: {
with types; {
enable =
mkEnableOption "Create deployment script at `config.system.build.spoInstallScript`.";
target-dns = mkOption {
target = mkOption {
type = nullOr str;
default = null;
example = "[email protected]";
description = ''
The target DNS address to deploy to. Overwritten by a command line argument.
The target address to deploy to, in the format <user>@<host>, where host is a DNS hostname. Overwritten by a command line argument.
'';
};
};
Expand Down Expand Up @@ -46,7 +46,7 @@ inputs: {
rm -rf "$tmp_keys"
}
target="${builtins.toString (config.spo-anywhere.install-script.target-dns or "")}"
target="${builtins.toString (config.spo-anywhere.install-script.target or "")}"
# todo: make target optional option
Expand Down
4 changes: 2 additions & 2 deletions tests/install-script.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ in {
install-script {
imports = [installing];
config = {
spo-anywhere.install-script.target-dns = "some-invalid-garbage";
spo-anywhere.install-script.target = "some-invalid-garbage";
};
}
);
Expand All @@ -192,7 +192,7 @@ in {
install-script {
imports = [installing];
config = {
spo-anywhere.install-script.target-dns = "root@installed";
spo-anywhere.install-script.target = "root@installed";
};
}
);
Expand Down

0 comments on commit 1be1e0e

Please sign in to comment.