From 97b1a1d353930679b412ea4b398fda4220851251 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 14 Jul 2022 23:45:26 +0200 Subject: [PATCH] operator: improve descriptions --- modules/operator.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/modules/operator.nix b/modules/operator.nix index 627f8d1..bbf5a85 100644 --- a/modules/operator.nix +++ b/modules/operator.nix @@ -1,24 +1,29 @@ -# Define an operator user for convenient interactive access to nix-bitcoin -# features and services. -# -# When using nix-bitcoin as part of a larger system config, set -# `nix-bitcoin.operator.name` to your main user name. - { config, lib, pkgs, ... }: with lib; let options.nix-bitcoin.operator = { - enable = mkEnableOption "operator user"; + enable = mkOption { + type = types.bool; + default = false; + description = '' + Whether to define a user named `operator` for convenient interactive access + to nix-bitcoin features (like `bitcoin-cli`). + + When using nix-bitcoin as part of a larger system config, it makes sense + to set your main system user as the operator, by setting option + `nix-bitcoin.operator.name = "
";`. + ''; + }; name = mkOption { type = types.str; default = "operator"; - description = "User name."; + description = "Name of the operator user."; }; groups = mkOption { type = with types; listOf str; default = []; - description = "Extra groups."; + description = "Extra groups of the operatur user."; }; allowRunAsUsers = mkOption { type = with types; listOf str;