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 { config = mkIf cfg.enable {
users.users.lnd = {
description = "LND User";
group = "lnd";
extraGroups = [ "bitcoinrpc" ];
home = cfg.dataDir;
};
users.groups.lnd = {};
systemd.services.lnd = { systemd.services.lnd = {
description = "Run LND"; description = "Run LND";
path = [ pkgs.nix-bitcoin.bitcoind ]; path = [ pkgs.nix-bitcoin.bitcoind ];
@ -152,5 +144,12 @@ in {
done done
''; '';
}; };
users.users.lnd = {
description = "LND User";
group = "lnd";
extraGroups = [ "bitcoinrpc" ];
home = cfg.dataDir;
};
users.groups.lnd = {};
}; };
} }

View File

@ -52,12 +52,6 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.nanopos = {
description = "nanopos User";
group = "nanopos";
};
users.groups.nanopos = {};
systemd.services.nanopos = { systemd.services.nanopos = {
description = "Run nanopos"; description = "Run nanopos";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -74,5 +68,10 @@ in {
// nix-bitcoin-services.nodejs // nix-bitcoin-services.nodejs
// nix-bitcoin-services.allowTor; // nix-bitcoin-services.allowTor;
}; };
users.users.nanopos = {
description = "nanopos User";
group = "nanopos";
};
users.groups.nanopos = {};
}; };
} }