summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2022-04-07 18:35:43 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2022-04-09 20:11:12 -0300
commita62471fc65888bb0ba7b6d8b79352a560cb1629f (patch)
treede72c50c5cf22a59836385942e8408816b871836 /nixos
parent6175188591f13d8bbcfab928acb5958b0504f59d (diff)
downloadnixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar.gz
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar.bz2
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar.lz
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar.xz
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.tar.zst
nixpkgs-a62471fc65888bb0ba7b6d8b79352a560cb1629f.zip
nixos/shellhub-agent: use mkEnableOption to simplify code
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/shellhub-agent.nix9
1 files changed, 1 insertions, 8 deletions
diff --git a/nixos/modules/services/networking/shellhub-agent.nix b/nixos/modules/services/networking/shellhub-agent.nix
index c7f3f9184c4..7a92636b5e3 100644
--- a/nixos/modules/services/networking/shellhub-agent.nix
+++ b/nixos/modules/services/networking/shellhub-agent.nix
@@ -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;