services: use consistent layout

Use the following order of definitions for all services:
- assertions
- configuration of other services
- environment.systemPackages
- tmpfiles
- own service
- users
- secrets
This commit is contained in:
Erik Arvstedt
2021-02-01 22:53:22 +01:00
parent a43534dda0
commit 6982699613
7 changed files with 68 additions and 60 deletions

View File

@@ -47,9 +47,11 @@ in {
# Provides lsusb for debugging
pkgs.usbutils
];
users.groups.${cfg.group} = {};
nix-bitcoin.operator.groups = [ cfg.group ];
})
(mkIf cfg.ledger {
# Ledger Nano S according to https://github.com/LedgerHQ/udev-rules/blob/master/add_udev_rules.sh
# Don't use rules from nixpkgs because we want to use our own group.