Skip to content

Commit 24d8ec6

Browse files
Add missing defaultText
1 parent f0db785 commit 24d8ec6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/generated-module-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ string
176176

177177

178178
*Default:*
179-
` "the-machine-hostname" `
179+
` config.networking.hostName `
180180

181181

182182

@@ -372,7 +372,7 @@ string
372372

373373

374374
*Default:*
375-
` "testing-the-machine-hostname" `
375+
` testing-${config.services.comin.hostname} `
376376

377377

378378

nix/module-options.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
hostname = mkOption {
1515
type = str;
1616
default = config.networking.hostName;
17+
defaultText = lib.literalExpression "config.networking.hostName";
1718
description = ''
18-
The name of the configuration to evaluate and deploy.
19+
The name of the configuration to evaluate and deploy.
1920
This value is used by comin to evaluate the flake output
2021
nixosConfigurations."<hostname>" or darwinConfigurations."<hostname>".
2122
Defaults to networking.hostName - you MUST set either this option
@@ -122,6 +123,7 @@
122123
name = mkOption {
123124
type = str;
124125
default = "testing-${config.services.comin.hostname}";
126+
defaultText = lib.literalExpression "testing-\${config.services.comin.hostname}";
125127
description = "The name of the testing branch.";
126128
};
127129
};

0 commit comments

Comments
 (0)