use lib.optionals
This commit is contained in:
parent
ec6d33fbb6
commit
74fbfa3a5d
@ -136,11 +136,11 @@ in {
|
|||||||
users.users.operator = {
|
users.users.operator = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ config.services.bitcoind.group ]
|
extraGroups = [ config.services.bitcoind.group ]
|
||||||
++ (if config.services.clightning.enable then [ "clightning" ] else [ ])
|
++ (optionals config.services.clightning.enable [ "clightning" ])
|
||||||
++ (if config.services.lnd.enable then [ "lnd" ] else [ ])
|
++ (optionals config.services.lnd.enable [ "lnd" ])
|
||||||
++ (if config.services.liquidd.enable then [ config.services.liquidd.group ] else [ ])
|
++ (optionals config.services.liquidd.enable [ config.services.liquidd.group ])
|
||||||
++ (if (config.services.hardware-wallets.ledger || config.services.hardware-wallets.trezor)
|
++ (optionals (config.services.hardware-wallets.ledger || config.services.hardware-wallets.trezor)
|
||||||
then [ config.services.hardware-wallets.group ] else [ ]);
|
[ config.services.hardware-wallets.group ]);
|
||||||
};
|
};
|
||||||
# Give operator access to onion hostnames
|
# Give operator access to onion hostnames
|
||||||
services.onion-chef.enable = true;
|
services.onion-chef.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user