diff --git a/SwarselSystems.org b/SwarselSystems.org index 45655af..4b06cc9 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4912,7 +4912,8 @@ Some programs profit from being installed through dedicated NixOS settings on sy }; #+end_src -Also, we setup zsh. Do not touch this. +**** zsh +Do not touch this. #+begin_src nix :tangle profiles/common/nixos.nix @@ -4921,6 +4922,54 @@ Also, we setup zsh. Do not touch this. environment.shells = with pkgs; [ zsh ]; environment.pathsToLink = [ "/share/zsh" ]; +#+end_src +**** syncthing + +#+begin_src nix :tangle profiles/common/nixos.nix + + services.syncthing = { + enable = true; + user = "swarsel"; + dataDir = "/home/swarsel"; + configDir = "/home/swarsel/.config/syncthing"; + openDefaultPorts = true; + settings = { + devices = { + "magicant" = { + id = "SEH2NMT-IVRQUU5-VPW2HUQ-3GQYDBF-F6H6OY6-X3DZTUZ-LCRE2DJ-QNIXIQ2"; + }; + "sync (@oracle)" = { + id = "ETW6TST-NPK7MKZ-M4LXMHA-QUPQHDT-VTSHH5X-CR5EIN2-YU7E55F-MGT7DQB"; + }; + "server1" = { + id = "ZXWVC4X-IIARITZ-MERZPHN-HD55Y6G-QJM2GTB-6BWYXMR-DTO3TS2-QDBREQQ"; + }; + }; + folders = { + "Default Folder" = { + path = "/home/swarsel/Sync"; + devices = [ "sync (@oracle)" "magicant" ]; + id = "default"; + }; + "Obsidian" = { + path = "/home/swarsel/Nextcloud/Obsidian"; + devices = [ "sync (@oracle)" "magicant" ]; + id = "yjvni-9eaa7"; + }; + "Org" = { + path = "/home/swarsel/Nextcloud/Org"; + devices = [ "sync (@oracle)" "magicant" ]; + id = "a7xnl-zjj3d"; + }; + "Vpn" = { + path = "/home/swarsel/Vpn"; + devices = [ "sync (@oracle)" "magicant" ]; + id = "hgp9s-fyq3p"; + }; + }; + }; + }; + #+end_src *** Services @@ -6688,7 +6737,7 @@ Enables the syncthing service which talks to my syncthing instance on the Oracle #+begin_src nix :tangle profiles/common/home.nix services.syncthing = { - enable = true; + enable = false; tray = { enable = false; # we enable this by installing the syncthingtray package instead, it works better. }; diff --git a/index.html b/index.html index 1149e1e..0e57fc2 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +-This file has 41230 words spanning 10979 lines and was last revised on 2024-07-20 00:16:24 +0200. +This file has 41361 words spanning 11031 lines and was last revised on 2024-07-20 11:04:39 +0200.
@@ -439,7 +439,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
-My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-20 00:16:24 +0200) +My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-20 11:04:39 +0200)
-Also, we setup zsh. Do not touch this. +Do not touch this.
+services.syncthing = {
+ enable = true;
+ user = "swarsel";
+ dataDir = "/home/swarsel";
+ configDir = "/home/swarsel/.config/syncthing";
+ openDefaultPorts = true;
+ settings = {
+ devices = {
+ "magicant" = {
+ id = "SEH2NMT-IVRQUU5-VPW2HUQ-3GQYDBF-F6H6OY6-X3DZTUZ-LCRE2DJ-QNIXIQ2";
+ };
+ "sync (@oracle)" = {
+ id = "ETW6TST-NPK7MKZ-M4LXMHA-QUPQHDT-VTSHH5X-CR5EIN2-YU7E55F-MGT7DQB";
+ };
+ "server1" = {
+ id = "ZXWVC4X-IIARITZ-MERZPHN-HD55Y6G-QJM2GTB-6BWYXMR-DTO3TS2-QDBREQQ";
+ };
+ };
+ folders = {
+ "Default Folder" = {
+ path = "/home/swarsel/Sync";
+ devices = [ "sync (@oracle)" "magicant" ];
+ id = "default";
+ };
+ "Obsidian" = {
+ path = "/home/swarsel/Nextcloud/Obsidian";
+ devices = [ "sync (@oracle)" "magicant" ];
+ id = "yjvni-9eaa7";
+ };
+ "Org" = {
+ path = "/home/swarsel/Nextcloud/Org";
+ devices = [ "sync (@oracle)" "magicant" ];
+ id = "a7xnl-zjj3d";
+ };
+ "Vpn" = {
+ path = "/home/swarsel/Vpn";
+ devices = [ "sync (@oracle)" "magicant" ];
+ id = "hgp9s-fyq3p";
+ };
+ };
+ };
+};
+
+
+
nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for command-not-found.sh, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output.
@@ -7971,7 +8027,7 @@ Enables the syncthing service which talks to my syncthing instance on the Oracle
services.syncthing = {
- enable = true;
+ enable = false;
tray = {
enable = false; # we enable this by installing the syncthingtray package instead, it works better.
};
@@ -9150,6 +9206,9 @@ Lastly, individual messages can be reenabled using the (advice-remove '<
(advice-add 'org-unlogged-message :around #'suppress-messages)
(advice-add 'magit-auto-revert-mode--init-kludge :around #'suppress-messages)
(advice-add 'push-mark :around #'suppress-messages)
+(advice-add 'timer-event-handler :around #'suppress-messages)
+(advice-add 'evil-insert :around #'suppress-messages)
+(advice-add 'evil-visual-char :around #'suppress-messages)
;; to reenable
;; (advice-remove 'timer-event-handler #'suppress-messages)
@@ -9391,7 +9450,7 @@ The standard Emacs behaviour for the Python process shell is a bit annoying. Thi
This function searches for common delimiters in region and removes them, summarizing all captured lines by it. @@ -9424,7 +9483,7 @@ This function searches for common delimiters in region and removes them, summari
This formats the org code block at point in accordance to the nixpkgs-fmt formatter
@@ -10997,8 +11056,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as
Adds functions for formatting nix code. @@ -13013,7 +13072,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar