mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
treewide: use optional instead of 'then []'
This commit is contained in:
parent
175e9d1f00
commit
933a41a73f
17 changed files with 45 additions and 65 deletions
|
@ -15,11 +15,11 @@ let
|
|||
rm -f /var/lib/glusterd/secure-access
|
||||
'';
|
||||
|
||||
restartTriggers = if (cfg.tlsSettings != null) then [
|
||||
restartTriggers = optionals (cfg.tlsSettings != null) [
|
||||
config.environment.etc."ssl/glusterfs.pem".source
|
||||
config.environment.etc."ssl/glusterfs.key".source
|
||||
config.environment.etc."ssl/glusterfs.ca".source
|
||||
] else [];
|
||||
];
|
||||
|
||||
cfg = config.services.glusterfs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue