services: auto-enable dependencies
This commit is contained in:
parent
06cba7b519
commit
67e49fe415
12 changed files with 28 additions and 37 deletions
|
|
@ -59,11 +59,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
{ assertion = config.services.lnd.enable;
|
||||
message = "lightning-loop requires lnd.";
|
||||
}
|
||||
];
|
||||
services.lnd.enable = true;
|
||||
|
||||
environment.systemPackages = [ cfg.package (hiPrio cfg.cli) ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue