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:
parent
a43534dda0
commit
6982699613
7 changed files with 68 additions and 60 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue