summaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorvin <vin@vineetk.net>2025-01-29 02:21:27 -0500
committervin <vin@vineetk.net>2025-01-29 02:23:09 -0500
commit14b0dc69cb56f48d0f3d0aec116ee80fd9a90ea4 (patch)
tree7994fae1520039bcadf46d40772a88041a0be9ac /home.nix
parent60c15af3496cd32c8decce080c2731abe8226b70 (diff)
try out syncthing again
It's very annoying having to manually rsync my files to and from my laptop. When I tried unison before, it defaults to asking for every single new/modified file it seemed and just felt clunky. Since Syncthing has an unofficial FOSS iOS app called SyncTrain/SushiTrain, I wanted to give it another shot.
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix100
1 files changed, 98 insertions, 2 deletions
diff --git a/home.nix b/home.nix
index 947f6bd..cd79dc1 100644
--- a/home.nix
+++ b/home.nix
@@ -59,7 +59,11 @@ in {
59 59
60 AGE_KEY = "$HOME/.ssh/id_ed25519"; 60 AGE_KEY = "$HOME/.ssh/id_ed25519";
61 AGE_PUB = "$AGE_KEY.pub"; 61 AGE_PUB = "$AGE_KEY.pub";
62 KASI_DIR = "/data/kasi"; 62 KASI_DIR =
63 if hostname == "demiurge" then
64 "/data/kasi"
65 else
66 "/home/vin/.kasi";
63 KASI_ENCRYPT = "age -R $AGE_PUB"; 67 KASI_ENCRYPT = "age -R $AGE_PUB";
64 KASI_DECRYPT = "age -d -i $AGE_KEY"; 68 KASI_DECRYPT = "age -d -i $AGE_KEY";
65 KASI_EXT = "age"; 69 KASI_EXT = "age";
@@ -566,7 +570,99 @@ set-option -sa terminal-features ',*:RGB'
566 temperature.day = 6500; 570 temperature.day = 6500;
567 temperature.night = 4500; 571 temperature.night = 4500;
568 }; 572 };
569 }; 573
574 syncthing = {
575 enable = true;
576 settings = {
577 devices = {
578 demiurge = {
579 addresses = [
580 "tcp://192.168.1.2:22000"
581 "tcp://10.0.13.2:22000"
582 ];
583 id = "Y2XNSCK-DQYYKWZ-DCKSCH2-QWRHQJV-5RLNTZF-RX2QOKL-RZ7J67Z-HGMK2Q2";
584 };
585
586 lappy = {
587 addresses = [
588 "tcp://192.168.1.3:22000"
589 "tcp://10.0.13.3:22000"
590 ];
591 id = "ZJ55XB6-VJ62N4F-5LTRNV3-JMIFI3G-TKAI2BZ-42QAFNJ-QDMVJ6I-O7KHQQ6";
592 };
593
594 iphonebob = {
595 addresses = [
596 "tcp://192.168.1.4:22000"
597 "tcp://10.0.13.4:22000"
598 ];
599 id = "ZD43FM5-WIZLODC-PR335XA-FQBSEQK-2ZZKWG3-UHTX57B-6VDVDCX-PPNI4AD";
600 };
601 };
602
603 folders = {
604 "bin" = {
605 devices = [ "demiurge" "lappy" ];
606 path =
607 if hostname == "demiurge" then
608 "/data/bin"
609 else
610 "/home/vin/bin";
611 };
612
613 "docs" = {
614 devices = [ "demiurge" "lappy" ];
615 path =
616 if hostname == "demiurge" then
617 "/data/docs"
618 else
619 "/home/vin/docs";
620 };
621
622 "emacs.d" = {
623 devices = [ "demiurge" "lappy" ];
624 path = "/home/vin/.emacs.d";
625 };
626
627 "kasi" = {
628 devices = [ "demiurge" "lappy" ];
629 path =
630 if hostname == "demiurge" then
631 "/data/kasi"
632 else
633 "/home/vin/.kasi";
634 };
635
636 "lit" = {
637 devices = [ "demiurge" "lappy" ];
638 path =
639 if hostname == "demiurge" then
640 "/data_warm/lit"
641 else
642 "/home/vin/lit";
643 };
644
645 "pics" = {
646 devices = [ "demiurge" "lappy" ];
647 path =
648 if hostname == "demiurge" then
649 "/data_warm/pics"
650 else
651 "/home/vin/pics";
652 };
653
654 "iphone" = {
655 devices = [ "demiurge" "lappy" "iphonebob" ];
656 path =
657 if hostname == "demiurge" then
658 "/data_warm/iphone"
659 else
660 "/home/vin/iphone";
661 };
662 };
663 };
664 };
665 };
570 666
571 xdg = { 667 xdg = {
572 enable = true; 668 enable = true;