onionAddresses: remove redundant option 'enable'
The service can be disabled via `onion-addresses.access = mkForce {};`
Also remove redundant description.
This commit is contained in:
parent
43c247e3fe
commit
93562f76dd
3 changed files with 1 additions and 11 deletions
|
|
@ -44,13 +44,6 @@ let
|
|||
'';
|
||||
in {
|
||||
options.nix-bitcoin.onionAddresses = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If enabled, the onion-addresses service will be installed.
|
||||
'';
|
||||
};
|
||||
access = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
|
|
@ -67,9 +60,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf (cfg.access != {}) {
|
||||
systemd.services.onion-addresses = {
|
||||
description = "Run onion-addresses";
|
||||
wantedBy = [ "tor.service" ];
|
||||
bindsTo = [ "tor.service" ];
|
||||
after = [ "tor.service" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue