Improve abstraction of deployment keys

This commit is contained in:
Jonas Nick
2018-12-03 22:16:01 +00:00
parent c79aaf9695
commit 9ed888b9c2
3 changed files with 28 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ with lib;
let
cfg = config.services.clightning;
configFile = pkgs.writeText "config" ''
autolisten=${toString cfg.autolisten}
autolisten=${if cfg.autolisten then "true" else "false"}
network=bitcoin
bitcoin-rpcuser=${cfg.bitcoin-rpcuser}
'';

View File

@@ -116,10 +116,6 @@ in {
type = "oneshot";
};
};
# This is required to have the deployment keys copied and chowned even if
# nanopos is not enabled
users.users.nanopos = {};
users.groups.nanopos = {};
services.liquidd.enable = cfg.modules == "all";
services.lightning-charge.enable = cfg.modules == "all";