···1333 restartTriggers = optionals cfg.enableReload [ configFile ];
1334 # Block reloading if not all certs exist yet.
1335 # Happens when config changes add new vhosts/certs.
1336- unitConfig.ConditionPathExists = optionals (sslServices != []) (map (certName: certs.${certName}.directory + "/fullchain.pem") vhostCertNames);
00000001337 serviceConfig = {
1338 Type = "oneshot";
1339 TimeoutSec = 60;
···1333 restartTriggers = optionals cfg.enableReload [ configFile ];
1334 # Block reloading if not all certs exist yet.
1335 # Happens when config changes add new vhosts/certs.
1336+ unitConfig = {
1337+ ConditionPathExists = optionals (sslServices != []) (map (certName: certs.${certName}.directory + "/fullchain.pem") vhostCertNames);
1338+ # Disable rate limiting for this, because it may be triggered quickly a bunch of times
1339+ # if a lot of certificates are renewed in quick succession. The reload itself is cheap,
1340+ # so even doing a lot of them in a short burst is fine.
1341+ # FIXME: there's probably a better way to do this.
1342+ StartLimitIntervalSec = 0;
1343+ };
1344 serviceConfig = {
1345 Type = "oneshot";
1346 TimeoutSec = 60;
+4-1
nixos/tests/headscale.nix
···13 in
14 {
15 name = "headscale";
16- meta.maintainers = with lib.maintainers; [ misterio77 ];
0001718 nodes =
19 let
···13 in
14 {
15 name = "headscale";
16+ meta.maintainers = with lib.maintainers; [
17+ kradalby
18+ misterio77
19+ ];
2021 nodes =
22 let
···23 # certain plugins need a custom configuration (available in passthru.initLua)
24 # to work with nix.
25 # if true, the wrapper automatically appends those snippets when necessary
26- , autoconfigure ? false
2728 # append to PATH runtime deps of plugins
29- , autowrapRuntimeDeps ? false
3031 # should contain all args but the binary. Can be either a string or list
32 , wrapperArgs ? []
···23 # certain plugins need a custom configuration (available in passthru.initLua)
24 # to work with nix.
25 # if true, the wrapper automatically appends those snippets when necessary
26+ , autoconfigure ? true
2728 # append to PATH runtime deps of plugins
29+ , autowrapRuntimeDeps ? true
3031 # should contain all args but the binary. Can be either a string or list
32 , wrapperArgs ? []
···5758 updateScript = ./update-vscodium.sh;
590000060 meta = with lib; {
61 description = ''
62 Open source source code editor developed by Microsoft for Windows,
···5758 updateScript = ./update-vscodium.sh;
5960+ # Editing the `codium` binary (and shell scripts) within the app bundle causes the bundle's signature
61+ # to be invalidated, which prevents launching starting with macOS Ventura, because VSCodium is notarized.
62+ # See https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ for more information.
63+ dontFixup = stdenv.hostPlatform.isDarwin;
64+65 meta = with lib; {
66 description = ''
67 Open source source code editor developed by Microsoft for Windows,
···2 lib,
3 writeScript,
4 fetchFromGitHub,
5- substituteAll,
6 inkscape,
7 pdflatex,
8 lualatex,
···33 patches = [
34 # Make sure we can point directly to pdflatex in the extension,
35 # instead of relying on the PATH (which might not have it)
36- (substituteAll {
37- src = ./fix-paths.patch;
38 inherit pdflatex lualatex;
39 })
40
···2 lib,
3 writeScript,
4 fetchFromGitHub,
5+ replaceVars,
6 inkscape,
7 pdflatex,
8 lualatex,
···33 patches = [
34 # Make sure we can point directly to pdflatex in the extension,
35 # instead of relying on the PATH (which might not have it)
36+ (replaceVars ./fix-paths.patch {
037 inherit pdflatex lualatex;
38 })
39
···38 libvpx,
39 nettools,
40 dbus,
41- substituteAll,
42 gsoap,
43 zlib,
44 xz,
···235 # these issues by patching the code to set QT_PLUGIN_PATH to the necessary paths,
236 # after the code that unsets it. Note that qtsvg is included so that SVG icons from
237 # the user's icon theme can be loaded.
238- ++ optional (!headless && enableHardening) (substituteAll {
239- src = ./qt-env-vars.patch;
240- qtPluginPath = "${qtbase}/bin/${qtbase.qtPluginPrefix}:${qtsvg}/bin/${qtbase.qtPluginPrefix}:${qtwayland}/bin/${qtbase.qtPluginPrefix}";
241- })
0242 # While the KVM patch should not break any other behavior if --with-kvm is not specified,
243 # we don't take any chances and only apply it if people actually want to use KVM support.
244 ++ optional enableKvm (
···38 libvpx,
39 nettools,
40 dbus,
41+ replaceVars,
42 gsoap,
43 zlib,
44 xz,
···235 # these issues by patching the code to set QT_PLUGIN_PATH to the necessary paths,
236 # after the code that unsets it. Note that qtsvg is included so that SVG icons from
237 # the user's icon theme can be loaded.
238+ ++ optional (!headless && enableHardening) (
239+ replaceVars ./qt-env-vars.patch {
240+ qtPluginPath = "${qtbase}/bin/${qtbase.qtPluginPrefix}:${qtsvg}/bin/${qtbase.qtPluginPrefix}:${qtwayland}/bin/${qtbase.qtPluginPrefix}";
241+ }
242+ )
243 # While the KVM patch should not break any other behavior if --with-kvm is not specified,
244 # we don't take any chances and only apply it if people actually want to use KVM support.
245 ++ optional enableKvm (