about summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2023-06-25 11:47:43 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-06-25 09:11:40 -0300
commit933a41a73fe2174b90cabb7d671ee2cc5658701a (patch)
tree1f8228d1369ab51c644a47ab269fb9c638553752 /nixos/modules/services/network-filesystems
parent175e9d1f00c41b49606e4eacbc1bfe396641e90f (diff)
downloadnixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.gz
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.bz2
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.lz
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.xz
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.zst
nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.zip
treewide: use optional instead of 'then []'
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r--nixos/modules/services/network-filesystems/glusterfs.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/network-filesystems/glusterfs.nix b/nixos/modules/services/network-filesystems/glusterfs.nix
index 5c3e197b687d..ee03bada492d 100644
--- a/nixos/modules/services/network-filesystems/glusterfs.nix
+++ b/nixos/modules/services/network-filesystems/glusterfs.nix
@@ -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;