From 1af0cc3ac55084a564fb7e9d49d722916061adce Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 11 Jul 2024 11:09:51 +0200 Subject: [PATCH] fix: disable emacs devdocs update on startup This caused errors when starting the emacs daemon with no internet connection. --- SwarselSystems.org | 4 ++-- profiles/fourside/nixos.nix | 1 + programs/emacs/init.el | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 2b84fb1..b9dc885 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -91,7 +91,6 @@ window.addEventListener('load', addDarkmodeWidget); #+end_export - * Noweb-Ref blocks :PROPERTIES: :CUSTOM_ID: h:d39b8dfb-536d-414f-9fc0-7d67df48cee4 @@ -1501,6 +1500,7 @@ Mostly just sets some opened ports for several games, enables virtualbox (which firewall = { enable = true; allowedUDPPorts = [ 4380 27036 14242 34197 51820 ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard + allowedTCPPorts = [ ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard allowedTCPPortRanges = [ {from = 27015; to = 27030;} # barotrauma {from = 27036; to = 27037;} # barotrauma @@ -9489,7 +9489,7 @@ To install a documentation, use the =devdocs=install= command and select the app (add-hook 'c++-ts-mode-hook (lambda () (setq-local devdocs-current-docs '("cpp")))) - (devdocs-update-all) + ; (devdocs-update-all) #+end_src diff --git a/profiles/fourside/nixos.nix b/profiles/fourside/nixos.nix index 664ef51..b9e974e 100644 --- a/profiles/fourside/nixos.nix +++ b/profiles/fourside/nixos.nix @@ -32,6 +32,7 @@ firewall = { enable = true; allowedUDPPorts = [ 4380 27036 14242 34197 51820 ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard + allowedTCPPorts = [ ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard allowedTCPPortRanges = [ {from = 27015; to = 27030;} # barotrauma {from = 27036; to = 27037;} # barotrauma diff --git a/programs/emacs/init.el b/programs/emacs/init.el index b39b251..eae9a4b 100644 --- a/programs/emacs/init.el +++ b/programs/emacs/init.el @@ -1133,7 +1133,7 @@ create a new one." (add-hook 'c++-ts-mode-hook (lambda () (setq-local devdocs-current-docs '("cpp")))) -(devdocs-update-all) +; (devdocs-update-all) (use-package projectile :diminish projectile-mode