operator: improve descriptions
This commit is contained in:
parent
27dd31ead5
commit
97b1a1d353
@ -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, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
options.nix-bitcoin.operator = {
|
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 = "<main user name>";`.
|
||||||
|
'';
|
||||||
|
};
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "operator";
|
default = "operator";
|
||||||
description = "User name.";
|
description = "Name of the operator user.";
|
||||||
};
|
};
|
||||||
groups = mkOption {
|
groups = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
description = "Extra groups.";
|
description = "Extra groups of the operatur user.";
|
||||||
};
|
};
|
||||||
allowRunAsUsers = mkOption {
|
allowRunAsUsers = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
|
Loading…
Reference in New Issue
Block a user