lnd, nanopos: move user and group definitions to the bottom

This is the default service formatting style in nixpkgs.
This commit is contained in:
Erik Arvstedt
2020-01-13 00:25:11 +01:00
parent 766fa4f300
commit 314272a228
2 changed files with 12 additions and 14 deletions
+7 -8
View File
@@ -70,14 +70,6 @@ in {
};
config = mkIf cfg.enable {
users.users.lnd = {
description = "LND User";
group = "lnd";
extraGroups = [ "bitcoinrpc" ];
home = cfg.dataDir;
};
users.groups.lnd = {};
systemd.services.lnd = {
description = "Run LND";
path = [ pkgs.nix-bitcoin.bitcoind ];
@@ -152,5 +144,12 @@ in {
done
'';
};
users.users.lnd = {
description = "LND User";
group = "lnd";
extraGroups = [ "bitcoinrpc" ];
home = cfg.dataDir;
};
users.groups.lnd = {};
};
}