diff --git a/configs/cloud.nix b/configs/cloud.nix index 636ce8e..0994be8 100644 --- a/configs/cloud.nix +++ b/configs/cloud.nix @@ -4,7 +4,6 @@ - ]; niveum.dropbox = { @@ -29,20 +28,20 @@ openDefaultPorts = true; configDir = "/home/kfm/.config/syncthing"; dataDir = "/home/kfm/.config/syncthing"; - }; - - krebs.syncthing = rec { - enable = true; - key = toString ; - cert = toString ; - peers = { - homeros.id = "HSOL72W-MMN346W-C3WCWCH-OTRKJYG-MY2WWV6-P7JUHN7-5WYYYRV-ZMH4KAA"; - scardanelli.id = "7CZYHEX-3CSFDQU-PEEMYHG-6XGQ2ZD-KGVUWH5-GFRB2XK-FP57ERX-7APZUQU"; - rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ"; - wilde.id = "R6DEBD7-G5RYDKN-VFA3HPO-WX4DNVI-373F7OQ-AW5MZTT-3L4BDVW-Y6ROEAF"; + declarative = rec { + cert = toString ; + key = toString ; + devices = { + homeros.id = "HSOL72W-MMN346W-C3WCWCH-OTRKJYG-MY2WWV6-P7JUHN7-5WYYYRV-ZMH4KAA"; + scardanelli.id = "7CZYHEX-3CSFDQU-PEEMYHG-6XGQ2ZD-KGVUWH5-GFRB2XK-FP57ERX-7APZUQU"; + rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ"; + wilde.id = "R6DEBD7-G5RYDKN-VFA3HPO-WX4DNVI-373F7OQ-AW5MZTT-3L4BDVW-Y6ROEAF"; + }; + folders = let syncthing-dir = "${config.users.users.me.home}/cloud/syncthing"; in { + "${syncthing-dir}/common".devices = [ "homeros" "scardanelli" "wilde" ]; + "${syncthing-dir}/library".devices = lib.attrNames devices; + "${syncthing-dir}/mundoiu".devices = lib.attrNames devices; + }; }; - folders."${config.users.users.me.home}/cloud/syncthing/common".peers = [ "homeros" "scardanelli" "wilde" ]; - folders."${config.users.users.me.home}/cloud/syncthing/library".peers = lib.attrNames peers; - folders."${config.users.users.me.home}/cloud/syncthing/mundoiu".peers = lib.attrNames peers; }; } diff --git a/todo.txt b/todo.txt index 2a18fe8..af92036 100644 --- a/todo.txt +++ b/todo.txt @@ -1,12 +1,7 @@ (C) 2019-07-09 @package fzf wrappers -x (C) 2019-08-26 2019-08-24 @package dirmir (C) 2019-08-25 environment.etc."sshd/banner-line".text = config.networking.hostName; (C) 2019-08-25 fix man-pdf: man-pdf 1p env, man-pdf env: man $options -t $command | ps2pdf - $command.pdf -x (C) 2019-08-26 2019-08-25 @package tolino-screensaver -(C) 2019-08-25 @package wallpapers (B) 2019-08-27 host something on @catullus (with nginx) (A) 2019-08-27 @package gourmet (A) 2019-08-27 fix offlineimap password -x (B) 2019-08-26 2019-08-26 environment.shellAliases.cat = "bat --style=plain" -x (B) 2019-08-26 2019-08-26 environment.shellAliases.tree = "exa --tree" (A) 2019-08-26 run services as their own @users