mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
fix(syncthing): use new declarative options
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
<modules/seafile.nix>
|
<modules/seafile.nix>
|
||||||
<modules/google-drive.nix>
|
<modules/google-drive.nix>
|
||||||
<modules/dropbox.nix>
|
<modules/dropbox.nix>
|
||||||
<stockholm/krebs/3modules/syncthing.nix>
|
|
||||||
];
|
];
|
||||||
|
|
||||||
niveum.dropbox = {
|
niveum.dropbox = {
|
||||||
@@ -29,20 +28,20 @@
|
|||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
configDir = "/home/kfm/.config/syncthing";
|
configDir = "/home/kfm/.config/syncthing";
|
||||||
dataDir = "/home/kfm/.config/syncthing";
|
dataDir = "/home/kfm/.config/syncthing";
|
||||||
};
|
declarative = rec {
|
||||||
|
cert = toString <secrets/syncthing/cert.pem>;
|
||||||
krebs.syncthing = rec {
|
key = toString <secrets/syncthing/key.pem>;
|
||||||
enable = true;
|
devices = {
|
||||||
key = toString <secrets/syncthing/key.pem>;
|
homeros.id = "HSOL72W-MMN346W-C3WCWCH-OTRKJYG-MY2WWV6-P7JUHN7-5WYYYRV-ZMH4KAA";
|
||||||
cert = toString <secrets/syncthing/cert.pem>;
|
scardanelli.id = "7CZYHEX-3CSFDQU-PEEMYHG-6XGQ2ZD-KGVUWH5-GFRB2XK-FP57ERX-7APZUQU";
|
||||||
peers = {
|
rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ";
|
||||||
homeros.id = "HSOL72W-MMN346W-C3WCWCH-OTRKJYG-MY2WWV6-P7JUHN7-5WYYYRV-ZMH4KAA";
|
wilde.id = "R6DEBD7-G5RYDKN-VFA3HPO-WX4DNVI-373F7OQ-AW5MZTT-3L4BDVW-Y6ROEAF";
|
||||||
scardanelli.id = "7CZYHEX-3CSFDQU-PEEMYHG-6XGQ2ZD-KGVUWH5-GFRB2XK-FP57ERX-7APZUQU";
|
};
|
||||||
rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ";
|
folders = let syncthing-dir = "${config.users.users.me.home}/cloud/syncthing"; in {
|
||||||
wilde.id = "R6DEBD7-G5RYDKN-VFA3HPO-WX4DNVI-373F7OQ-AW5MZTT-3L4BDVW-Y6ROEAF";
|
"${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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
todo.txt
5
todo.txt
@@ -1,12 +1,7 @@
|
|||||||
(C) 2019-07-09 @package fzf wrappers
|
(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 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
|
(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)
|
(B) 2019-08-27 host something on @catullus (with nginx)
|
||||||
(A) 2019-08-27 @package gourmet
|
(A) 2019-08-27 @package gourmet
|
||||||
(A) 2019-08-27 fix offlineimap password
|
(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
|
(A) 2019-08-26 run services as their own @users
|
||||||
|
|||||||
Reference in New Issue
Block a user