From bd36e83523d94959f4847a6e7305a42545399fdc Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Sat, 10 Jan 2026 16:32:55 -0700 Subject: [PATCH] Getting syncthing working. Removing ctrl-A key binding for now --- configuration.pc.nix | 2 +- home-linux.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/configuration.pc.nix b/configuration.pc.nix index 5947aa2..fc02a8f 100644 --- a/configuration.pc.nix +++ b/configuration.pc.nix @@ -73,7 +73,7 @@ # macOS-style Super/Cmd shortcuts (Dvorak physical positions) meta = { - a = "C-a"; # Cmd+a → select all + # a = "C-a"; # Cmd+a → select all i = "C-i"; # Cmd+c → copy (dvorak 'c' = qwerty 'i') k = "C-k"; # Cmd+t → new tab (dvorak 't' = qwerty 'k') l = "C-l"; # Cmd+n → new window (dvorak 'n' = qwerty 'l') diff --git a/home-linux.nix b/home-linux.nix index 545d566..fadc34a 100644 --- a/home-linux.nix +++ b/home-linux.nix @@ -1,5 +1,9 @@ {pkgs, lib, ... }: +let + secrets = import ./secrets.nix; +in + { home.homeDirectory = "/home/dustinswan"; @@ -63,6 +67,22 @@ services.syncthing = { enable = true; + settings = { + devices = { + "Laptop" = { id = secrets.syncthing.laptop; }; + "Phone" = { id = secrets.syncthing.phone; }; + }; + folders = { + "Camera" = { + path = "~/Camera"; + devices = [ "Laptop" "Phone" ]; + }; + "Sync" = { + path = "~/Sync"; + devices = [ "Laptop" "Phone" ]; + }; + }; + }; }; services.gpg-agent = {