[fix] module.nix: i love parenthesis /s
This commit is contained in:
parent
46ce3e4a69
commit
43f3c417da
3 changed files with 17 additions and 16 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1154,7 +1154,7 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webnsupdate"
|
name = "webnsupdate"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"axum-auth",
|
"axum-auth",
|
||||||
|
|
|
@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
|
||||||
[package]
|
[package]
|
||||||
description = "An HTTP server using HTTP basic auth to make secure calls to nsupdate"
|
description = "An HTTP server using HTTP basic auth to make secure calls to nsupdate"
|
||||||
name = "webnsupdate"
|
name = "webnsupdate"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -107,7 +107,7 @@ in {
|
||||||
if cfg.recordsFile != null
|
if cfg.recordsFile != null
|
||||||
then cfg.recordsFile
|
then cfg.recordsFile
|
||||||
else pkgs.writeText "webnsrecords" cfg.records;
|
else pkgs.writeText "webnsrecords" cfg.records;
|
||||||
args = lib.strings.escapeShellArgs [
|
args = lib.strings.escapeShellArgs ([
|
||||||
"--records"
|
"--records"
|
||||||
recordsFile
|
recordsFile
|
||||||
"--key-file"
|
"--key-file"
|
||||||
|
@ -120,7 +120,8 @@ in {
|
||||||
(builtins.toString cfg.bindPort)
|
(builtins.toString cfg.bindPort)
|
||||||
"--ttl"
|
"--ttl"
|
||||||
(builtins.toString cfg.ttl)
|
(builtins.toString cfg.ttl)
|
||||||
] ++ cfg.extraArgs;
|
]
|
||||||
|
++ cfg.extraArgs);
|
||||||
cmd = "${lib.getExe pkgs.webnsupdate} ${args}";
|
cmd = "${lib.getExe pkgs.webnsupdate} ${args}";
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in a new issue