my system configurations ^-^
0
fork

Configure Feed

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

update

willow e759c2de faf15dda

+26 -27
+26 -27
modules/shared/home/services/syncthing.nix
··· 1 1 { 2 2 config, 3 - osConfig, 4 3 pkgs, 5 - lib, 6 4 ... 7 5 }: let 8 6 inherit (pkgs.stdenv) isDarwin; 9 - inherit (osConfig.settings.system) hostName; 10 7 11 8 devices = { 12 9 starling.id = "3NK35IK-ZONOPLB-R277NP3-MUTEU33-PFKOWCZ-U3SB6ZO-YPIBVY5-UTCTIQK"; ··· 14 11 }; 15 12 allDevices = builtins.attrNames devices; 16 13 in { 14 + # https://github.com/nix-community/home-manager/issues/6542 15 + # syncthing config not applied on switch on darwin 16 + # 17 + # touch ~/Library/Application\ Support/Syncthing/.launchd_update_config 18 + 17 19 services.syncthing = { 18 20 enable = true; 19 21 20 - # key = 21 - # if hostName == "starling" 22 - # then secrets.syncthingStarlingKey 23 - # else if hostName == "earthy" 24 - # then secrets.syncthingEarthyKey 25 - # else null; 26 - 27 - # cert = 28 - # if hostName == "starling" 29 - # then secrets.syncthingStarlingCert 30 - # else if hostName == "earthy" 31 - # then secrets.syncthingEarthyCert 32 - # else null; 33 - 34 22 settings = { 35 23 inherit devices; 36 24 options = { 25 + urAccepted = -1; # disable usage reporting 37 26 relaysEnabled = false; 38 27 }; 39 28 folders = { 40 29 docs = { 41 30 label = "Documents"; 42 - path = config.xdg.userDirs.documents; 43 31 devices = allDevices; 32 + path = config.xdg.userDirs.documents; 44 33 }; 45 34 music = { 46 35 label = "Music"; 36 + devices = allDevices; 47 37 path = config.xdg.userDirs.music; 38 + }; 39 + pictures = { 40 + label = "Pictures"; 48 41 devices = allDevices; 42 + path = config.xdg.userDirs.pictures; 49 43 }; 50 - # pictures = { 51 - # label = "Pictures"; 52 - # path = config.xdg.userDirs.pictures; 53 - # devices = shared; 54 - # }; 55 - # git = { 56 - # label = "Git"; 57 - # path = if isDarwin then "${config.xdg.userDirs.documents}/git" else "~/git"; 58 - # }; 44 + # ignored in documents 45 + git = { 46 + label = "Git"; 47 + devices = allDevices; 48 + path = 49 + if isDarwin 50 + then "${config.xdg.userDirs.documents}/git" 51 + else "~/git"; 52 + }; 53 + videos = { 54 + label = "Videos"; 55 + devices = allDevices; 56 + path = config.xdg.userDirs.videos; 57 + }; 59 58 }; 60 59 }; 61 60 extraOptions = ["--no-default-folder"]; # don't create default ~/Sync folder