Add nix-bitcoin.lib for utility functions and types

This commit is contained in:
Jonas Nick
2020-08-20 21:31:24 +00:00
parent 72000b4a99
commit 322ba5bfff
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ in {
'';
};
bind-addr = mkOption {
type = types.addCheck types.str (s: builtins.length (builtins.split ":" s) == 1);
type = pkgs.nix-bitcoin.lib.ipv4Address;
default = "127.0.0.1";
description = "Set an IP address or UNIX domain socket to listen to";
};