move systemPackages definitions to services

These are generally useful and shouldn't be limited to secure-node.nix.

Also, only add the hardware-wallets group when hardware wallets are enabled.
This commit is contained in:
Erik Arvstedt
2020-04-08 17:35:14 +02:00
parent 6c22e13b7f
commit 37b2faf63c
10 changed files with 24 additions and 28 deletions
+5 -1
View File
@@ -195,7 +195,11 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.nix-bitcoin.elementsd ];
environment.systemPackages = [
pkgs.nix-bitcoin.elementsd
(hiPrio cfg.cli)
(hiPrio cfg.swap-cli)
];
systemd.services.liquidd = {
description = "Elements daemon providing access to the Liquid sidechain";
requires = [ "bitcoind.service" ];