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-12 20:52:37 +01:00
parent 766fa4f300
commit 314272a228
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 12 additions and 14 deletions

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 = {};
};
}