Skip to content

Commit

Permalink
fix defaultText
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric committed Oct 10, 2024
1 parent 61abd58 commit af60750
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nixos/modules/services/networking/tailscale-cert.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ in
certFile = lib.mkOption {
type = lib.types.str;
default = "${cfg.domain}.crt";
defaultText = lib.literalExpression "config.${opt.domain}.crt";
defaultText = lib.literalExpression ''
"''${config.${opt.domain}}.crt"
'';

description = "File name for cert under <option>services.tailscale-cert.dataDir</option>";
};

keyFile = lib.mkOption {
type = lib.types.str;
default = "${cfg.domain}.key";
defaultText = lib.literalExpression "config.${opt.domain}.key";
defaultText = lib.literalExpression ''
"''${config.${opt.domain}}.crt"
'';
description = "File name for key file under <option>services.tailscale-cert.dataDir</option>";
};

Expand Down

0 comments on commit af60750

Please sign in to comment.