File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 2424 after = lib . optional ( config . cardano . node . enable or false ) "cardano-node-socket.service" ++ lib . optional ( config . cardano . ogmios . enable or false ) "ogmios.service" ;
2525 requires = lib . optional ( config . cardano . node . enable or false ) "cardano-node-socket.service" ++ lib . optional ( config . cardano . ogmios . enable or false ) "ogmios.service" ;
2626 } ;
27+
28+ # Register as default Kupo provider for others `cardano.nix` consumers
29+ cardano . providers . kupo = {
30+ active = true ;
31+ inherit ( config . service . kupo ) host port ;
32+ after = "kupo.service" ;
33+ requires = "kupo.service" ;
34+ } ;
2735 } ;
2836}
Original file line number Diff line number Diff line change 2222 after = [ "cardano-node-socket.service" ] ;
2323 requires = [ "cardano-node-socket.service" ] ;
2424 } ;
25+
26+ # Register as default Ogmios provider for others `cardano.nix` consumers
27+ cardano . providers . ogmios = {
28+ active = true ;
29+ inherit ( config . service . ogmios ) host port ;
30+ after = "ogmios.service" ;
31+ requires = "ogmios.service" ;
32+ } ;
2533 } ;
2634}
Original file line number Diff line number Diff line change 5252 '' ;
5353 } ;
5454 } ;
55+ tcpOptions = name : {
56+ host = mkOption {
57+ type = types . str ;
58+ internal = true ;
59+ description = ''
60+ Host address for TCP connection to ${ name } , to refer by consumers.
61+ '' ;
62+ } ;
63+ port = mkOption {
64+ type = types . port ;
65+ internal = true ;
66+ description = ''
67+ Port address for TCP connection to ${ name } , to refer by consumers.
68+ '' ;
69+ } ;
70+ } ;
5571in
5672{
5773 options . cardano . providers = mkOption {
6076 type = types . submodule {
6177 options = {
6278 node = sharedOptions // socketOptions "cardano node" ;
79+ ogmios = sharedOptions // tcpOptions "Ogmios" ;
80+ kupo = sharedOptions // tcpOptions "Kupo" ;
6381 } ;
6482 } ;
6583 } ;
You can’t perform that action at this time.
0 commit comments