rename nix-bitcoin-services.nix -> lib.nix

This commit is contained in:
Erik Arvstedt
2021-02-03 22:44:41 +01:00
committed by nixbitcoin
parent c0abae97a4
commit a26ed03d77
15 changed files with 81 additions and 81 deletions

View File

@@ -10,7 +10,7 @@ with lib;
let
cfg = config.nix-bitcoin.onionAddresses;
inherit (config) nix-bitcoin-services;
nbLib = config.nix-bitcoin.lib;
in {
options.nix-bitcoin.onionAddresses = {
access = mkOption {
@@ -47,7 +47,7 @@ in {
wantedBy = [ "tor.service" ];
bindsTo = [ "tor.service" ];
after = [ "tor.service" ];
serviceConfig = nix-bitcoin-services.defaultHardening // {
serviceConfig = nbLib.defaultHardening // {
Type = "oneshot";
RemainAfterExit = true;
StateDirectory = "onion-addresses";