From b53f817088d841966f54f867155df50b85934a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 3 Oct 2023 00:19:57 +0200 Subject: [PATCH] nixos/locate: cleanup optional parenthesis --- nixos/modules/misc/locate.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index b413c46c5365..569d81e245c2 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -6,7 +6,7 @@ let cfg = config.services.locate; isMLocate = hasPrefix "mlocate" cfg.locate.name; isPLocate = hasPrefix "plocate" cfg.locate.name; - isMorPLocate = (isMLocate || isPLocate); + isMorPLocate = isMLocate || isPLocate; isFindutils = hasPrefix "findutils" cfg.locate.name; in { @@ -216,18 +216,18 @@ in setgid = true; setuid = false; }; - mlocate = (mkIf isMLocate { + mlocate = mkIf isMLocate { group = "mlocate"; source = "${cfg.locate}/bin/locate"; - }); - plocate = (mkIf isPLocate { + }; + plocate = mkIf isPLocate { group = "plocate"; source = "${cfg.locate}/bin/plocate"; - }); + }; in mkIf isMorPLocate { locate = mkMerge [ common mlocate plocate ]; - plocate = (mkIf isPLocate (mkMerge [ common plocate ])); + plocate = mkIf isPLocate (mkMerge [ common plocate ]); }; environment.systemPackages = [ cfg.locate ];