nixos/shellhub-agent: use mkEnableOption to simplify code

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2022-04-07 18:35:43 -03:00
parent 6175188591
commit a62471fc65

View File

@ -12,14 +12,7 @@ in
services.shellhub-agent = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable the ShellHub Agent daemon, which allows
secure remote logins.
'';
};
enable = mkEnableOption "ShellHub Agent daemon";
package = mkOption {
type = types.package;