diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-29 00:33:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 00:33:19 +0200 |
commit | eaf8053ad50b8de818590fea529646983c16f5b4 (patch) | |
tree | f3a0f62e0b9ff882049caa62c87b737f6b842d0f /nixos | |
parent | c55ba8b86b13a904239327d0b79c804e07d5e483 (diff) | |
parent | 88e82879f4ed8d87ab586f6affa04b0101e70a89 (diff) |
Merge pull request #264036 from wegank/unifi-hotfix
nixos/unifi: fix use of optionalString
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/unifi.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 37a739f41d485..6b68371098065 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -6,9 +6,9 @@ let cmd = '' @${cfg.jrePackage}/bin/java java \ ${optionalString (lib.versionAtLeast (lib.getVersion cfg.jrePackage) "16") - "--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED " + ("--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED " + "--add-opens java.base/sun.security.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED " - + "--add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED"} \ + + "--add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED")} \ ${optionalString (cfg.initialJavaHeapSize != null) "-Xms${(toString cfg.initialJavaHeapSize)}m"} \ ${optionalString (cfg.maximumJavaHeapSize != null) "-Xmx${(toString cfg.maximumJavaHeapSize)}m"} \ -jar ${stateDir}/lib/ace.jar |