cfg-playground @main -
refs -
log -
-
https://git.jolheiser.com/cfg-playground.git
Signature
-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY
oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQFxpcrUeGBuYU+6MDkOI+2CTclzdsxFtJ9UJtNu1EvOnMa+akJYGvWFmLY7DEz9G1D
gk7Red83Cvn9SxVmKQwgI=
-----END SSH SIGNATURE-----
diff --git a/gen.jsonnet b/gen.jsonnet
index 35224cefee0a8249585c992887de628f31f7717f..f512000cf66365fcd3a5ffce2a36ccbc9d667680 100644
--- a/gen.jsonnet
+++ b/gen.jsonnet
@@ -29,6 +29,8 @@ {
name: 'verbose',
description: 'Log verbosely',
name: 'cfg-playground',
+ nix: {
+ name: 'cfg-playground',
description: 'Playground for cfg',
},
],
diff --git a/nix/module.nix b/nix/module.nix
index 54473dbb35a68c4f76a1abc6b051aa784fdacfd3..534b01fb23485f65cefa75e51cfb270faaf22a5f 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -41,6 +41,7 @@ description = "tsnet auth key";
};
verbose = mkOption {
type = types.bool;
+ default = false;
description = "Log verbosely";
};
@@ -77,11 +78,10 @@ args = [
"--hostname=${cfg.hostname}"
"--data-dir=${cfg.data-dir}"
"--auth-key=${cfg.auth-key}"
- "--verbose=${cfg.verbose}"
-
+ (lib.optionalString cfg.verbose "--verbose")
];
in
- "${cfg.package}/bin/cfg-playgroundd ${builtins.concatStringsSep " " args}";
+ "${cfg.package}/bin/cfg-playground ${builtins.concatStringsSep " " args}";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = [ cfg.package ];