diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-10-03 00:19:57 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-10-03 00:19:57 +0200 |
commit | b53f817088d841966f54f867155df50b85934a33 (patch) | |
tree | 13b53600ad00b81fb950c5e6e1c06274bbec4ce1 /nixos/modules/misc | |
parent | f98a338eec41e707d16003fec9fb3f7be33f550b (diff) |
nixos/locate: cleanup optional parenthesis
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/locate.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index b413c46c53655..569d81e245c2c 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 ]; |