mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
~ syncthing
This commit is contained in:
@@ -28,9 +28,11 @@
|
|||||||
krebs.syncthing = rec {
|
krebs.syncthing = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
id = config.networking.hostName;
|
id = config.networking.hostName;
|
||||||
|
key = toString <secrets/syncthing-key.pem>;
|
||||||
|
cert = toString <secrets/syncthing-cert.pem>;
|
||||||
peers = {
|
peers = {
|
||||||
homeros.id = "TGVJKSM-5P7YP4E-OCYDB6S-LXQ3PNM-RP6BNBS-2UNYKKX-YJCMWAF-NGWQFA2";
|
homeros.id = "HSOL72W-MMN346W-C3WCWCH-OTRKJYG-MY2WWV6-P7JUHN7-5WYYYRV-ZMH4KAA";
|
||||||
scardanelli.id = "XEQUNNZ-FQ67ASA-4DWBKAO-RQD2PTK-B6J74TT-RQPBVDE-SRNOSMF-UUAUMAK";
|
scardanelli.id = "7CZYHEX-3CSFDQU-PEEMYHG-6XGQ2ZD-KGVUWH5-GFRB2XK-FP57ERX-7APZUQU";
|
||||||
rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ";
|
rilke.id = "NYNNHXP-7JMSTXG-SVNOPWD-RWXCCCL-CBOVBEI-X4QPLF4-NJA5G2P-RSGYRQQ";
|
||||||
};
|
};
|
||||||
folders."${config.users.users.me.home}/cloud/syncthing/common".peers = [ "homeros" "scardanelli" ];
|
folders."${config.users.users.me.home}/cloud/syncthing/common".peers = [ "homeros" "scardanelli" ];
|
||||||
|
|||||||
10
deploy.nix
10
deploy.nix
@@ -32,7 +32,7 @@ let
|
|||||||
|
|
||||||
minimal = path: other: lib.evalSource [(niveum path // other)];
|
minimal = path: other: lib.evalSource [(niveum path // other)];
|
||||||
|
|
||||||
regular = path: minimal path {
|
regular = path: name: minimal path {
|
||||||
home-manager.git = {
|
home-manager.git = {
|
||||||
url = https://github.com/rycee/home-manager;
|
url = https://github.com/rycee/home-manager;
|
||||||
ref = "2ccbf43";
|
ref = "2ccbf43";
|
||||||
@@ -41,15 +41,19 @@ let
|
|||||||
url = https://cgit.krebsco.de/stockholm;
|
url = https://cgit.krebsco.de/stockholm;
|
||||||
ref = "1340e3fb";
|
ref = "1340e3fb";
|
||||||
};
|
};
|
||||||
|
secrets.pass = {
|
||||||
|
dir = toString ~/.password-store;
|
||||||
|
inherit name;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
||||||
source = regular ./systems/scardanelli;
|
source = regular ./systems/scardanelli "scardanelli";
|
||||||
target = scardanelli-ssh;
|
target = scardanelli-ssh;
|
||||||
};
|
};
|
||||||
|
|
||||||
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
||||||
source = regular ./systems/homeros;
|
source = regular ./systems/homeros "homeros";
|
||||||
target = homeros-ssh;
|
target = homeros-ssh;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user