diff --git a/flake.nix b/flake.nix index 82a3ceb..65412b6 100644 --- a/flake.nix +++ b/flake.nix @@ -92,6 +92,7 @@ inherit firefox-addons; inherit buildFirefoxXpiAddon; inherit custom-pkgs; + inherit hostname; }; }; in { diff --git a/homes/desktop.nix b/homes/desktop.nix index 4ca1e6c..37cdec8 100644 --- a/homes/desktop.nix +++ b/homes/desktop.nix @@ -4,6 +4,7 @@ ./../programs/firefox.nix ./../programs/zed.nix ./../services/gpg-agent.nix + ./../services/syncthing.nix ]; home = { diff --git a/programs/alttab.nix b/programs/alttab.nix index 1901f4d..907b6d1 100644 --- a/programs/alttab.nix +++ b/programs/alttab.nix @@ -1,7 +1,7 @@ { ... }: { defaults."AltTab" = { appearanceStyle = 0; - nextWindowGesture = 1; + nextWindowGesture = 3; screenRecordingPermissionSkipped = true; showFullscreenWindows = 0; showHiddenWindows = 1; diff --git a/services/syncthing.nix b/services/syncthing.nix new file mode 100644 index 0000000..85ca1ed --- /dev/null +++ b/services/syncthing.nix @@ -0,0 +1,49 @@ +{ hostname, ... }: { + services.syncthing = let + devices = { + bracket.id = + "6I5AHYC-IWSO3SZ-TZY4SSR-Z7MGB2V-QMCMJXE-QW5JBQV-DBDU5YV-4LRLKQW"; + boozer.id = + "JKLIUHR-SBAVQCX-43ETUQR-M4ZZA75-JXK7EOF-F5RJBG7-PT363R6-MJ6WLQ4"; + } // (if hostname != "odyssey" then { + odyssey.id = + "YC6NDSU-2JRS4MY-BSM4B5V-FWPXKSJ-S573II2-HDOSWSN-DVIDORQ-UUHTKQB"; + } else + { }) // (if hostname != "corianne" then { + corianne.id = + "EN5KDDZ-F6DYDSR-KK35M2M-BVGBU4W-MVC4ENT-5EPWA6M-BBJPIBU-EQTPRQX"; + } else + { }); + in { + enable = true; + settings = { + inherit devices; + folders = let deviceNames = builtins.attrNames devices; + in { + Logseq = { + label = "Logseq"; + id = "kkqs5-4upcf"; + path = "~/Logseq"; + type = "sendreceive"; + versioning = { + type = "trashcan"; + params.cleanoutDays = 14; + }; + devices = deviceNames; + }; + SyncBucket = { + label = "SyncBucket"; + id = "9l6gb-rkyou"; + path = "~/SyncBucket"; + type = "sendreceive"; + versioning = { + type = "trashcan"; + params.cleanoutDays = 14; + }; + devices = deviceNames; + }; + }; + options = { urAccepted = -1; }; + }; + }; +}