Improve abstraction of deployment keys
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user