my system configurations ^-^
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: syncthing

willow 11a16332 efb1c2e9

+50
+42
modules/shared/home/services/syncthing.nix
··· 1 + { 2 + lib, 3 + pkgs, 4 + config, 5 + ... 6 + }: let 7 + inherit (pkgs.stdenv) isDarwin; 8 + shared = ["earthy" "starling"]; 9 + in { 10 + services.syncthing = { 11 + enable = true; 12 + settings = { 13 + devices = { 14 + # this is an anti-pattern as cleartext is placed into nix store, doesn't matter in this case 15 + starling.id = builtins.readFile config.age.secrets.syncthingEarthy.path; 16 + earthy.id = builtins.readFile config.age.secrets.syncthingStarling.path; 17 + }; 18 + folders = { 19 + docs = { 20 + label = "Documents"; 21 + path = config.xdg.userDirs.documents; 22 + devices = shared; 23 + }; 24 + music = { 25 + label = "Music"; 26 + path = config.xdg.userDirs.music; 27 + devices = shared; 28 + }; 29 + # pictures = { 30 + # label = "Pictures"; 31 + # path = config.xdg.userDirs.pictures; 32 + # devices = shared; 33 + # }; 34 + # git = { 35 + # label = "Git"; 36 + # path = if isDarwin then "${config.xdg.userDirs.documents}/git" else "~/git"; 37 + # }; 38 + }; 39 + }; 40 + extraOptions = ["--no-default-folder"]; # don't create default ~/Sync folder 41 + }; 42 + }
+6
modules/shared/nix/age.nix
··· 56 56 samba = mkSecret { 57 57 file = "samba"; 58 58 }; 59 + syncthingEarthy = mkSecret { 60 + file = "syncthing-earthy"; 61 + }; 62 + syncthingStarling = mkSecret { 63 + file = "syncthing-starling"; 64 + }; 59 65 wifi = mkSecret { 60 66 file = "wifi"; 61 67 };
+2
secrets/secrets.nix
··· 12 12 "lastfm.age".publicKeys = users ++ hosts; 13 13 "restic.age".publicKeys = users ++ hosts; 14 14 "samba.age".publicKeys = users ++ hosts; 15 + "syncthing-earthy.age".publicKeys = users ++ hosts; 16 + "syncthing-starling.age".publicKeys = users ++ hosts; 15 17 "wifi.age".publicKeys = users ++ hosts; 16 18 }
secrets/syncthing-earthy.age

This is a binary file and will not be displayed.

secrets/syncthing-starling.age

This is a binary file and will not be displayed.