commit 23ecb01e4bfc2ccac8737a5c28590d03772bc626
parent 95a71d08591547926922e90809ed118c095922e1
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 27 Mar 2023 14:25:54 +0200
parent 95a71d08591547926922e90809ed118c095922e1
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 27 Mar 2023 14:25:54 +0200
configurations/common/syncthing-config: comment out lollo-old
5 files changed, 16 insertions(+), 78 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1,3 +1,2 @@ .DS_Store result -secrets/syncthing-ids.nix
diff --git a/configurations/common/syncthing-config.nix b/configurations/common/syncthing-config.nix @@ -1,29 +1,27 @@ { inputs, pkgs, config, lib, ... }: let - syncthing-ids = import ../../secrets/syncthing-ids.nix; - devices = { #mobile devices - blechkasten.id = syncthing-ids.blechkasten; - iphone.id = syncthing-ids.iphone; - ipad.id = syncthing-ids.ipad; + blechkasten.id = "HGPWBVY-RD4JKBQ-X3V53IB-KRVDXEQ-4YLN5F2-WPPSMYR-SOXGTY6-IDFOAAC"; + iphone.id = "3SM3LJV-XMHYW2D-MU5WQ3T-KGYUJOI-LXOL6YI-BSVZ2B5-QJ6GVXN-MPWMKQ7"; + ipad.id = "WVQIZTE-RULPSEW-IZF4UWI-Q2LX3WJ-MXDUZI3-DF5YHXS-CORBZ27-BCA6XAR"; #servers lollo = { name = "lollo.ctu.cx"; - id = syncthing-ids.lollo; + id = "OJBJJWI-YLA2ALO-NJYJW4L-NSZEOLT-WLWHDMQ-HB56RNN-PELSHOM-47ZQDQZ"; }; - lollo-old = { - name = "lollo-old.ctu.cx"; - id = syncthing-ids.lollo-old; - }; + #lollo-old = { + # name = "lollo-old.ctu.cx"; + # id = "QI2EPUE-4VMZ3XV-LXX3GXP-RHCWTRY-AACLSGL-YG7MIYV-THST74N-KJGIBQ6"; + #}; }; isaDevices = { - isa-x390.id = syncthing-ids.isa-x390; - isa-mba13.id = syncthing-ids.isa-mba13; + isa-x390.id = "PRJAOU7-I4HWOE7-PDSJAK6-OPTVOEO-26Z3AWV-C63NQGK-7MXWSQ2-YSIUVAG"; + isa-mba13.id = "U5KFHD3-GEX3QQK-7UOC7PY-IAJWZSU-MYO6KWL-GWZ3NHF-CBLJRSE-OTIUAAS"; }; enabledShares = { @@ -37,11 +35,11 @@ let "Blechelse" ]; - lollo-old = [ - "ctucx-music-orig" - "ctucx-media" - "Blechelse" - ]; + #lollo-old = [ + # "ctucx-music-orig" + # "ctucx-media" + # "Blechelse" + #]; }; deviceNames = builtins.attrNames (lib.filterAttrs isCurrentHost devices);
diff --git a/hive.nix b/hive.nix @@ -17,7 +17,7 @@ inputs: overlays: defaults = import ./configurations/common; lollo = import ./machines/lollo/configuration.nix; - lollo-old = import ./machines/lollo-old/configuration.nix; + #lollo-old = import ./machines/lollo-old/configuration.nix; trabbi = import ./machines/trabbi/configuration.nix; wanderduene = import ./machines/wanderduene/configuration.nix;
diff --git a/secrets/secrets b/secrets/secrets @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -set -eo pipefail -cd "$(dirname "$0")" - -tempfile=$(mktemp) - -trap "rm -f $tempfile" SIGINT SIGTERM ERR EXIT - -touch $tempfile -chmod 600 $tempfile - -echo "$(pass agenix-privkey)" > $tempfile - -case $1 in - "-e") - if [ -f "syncthing-ids.nix" ]; then - age -i $tempfile --encrypt --armor --output syncthing-ids.nix.age syncthing-ids.nix - else - echo "There is no 'syncthing-ids.nix' file!" - exit 1 - fi - ;; - - "-d") - age -i $tempfile --decrypt --output syncthing-ids.nix syncthing-ids.nix.age - ;; - - "") - echo "No option given!" - exit 1 - ;; - - *) - echo "Unknown option: $1" - exit 1 - ;; - -esac
diff --git a/secrets/syncthing-ids.nix.age b/secrets/syncthing-ids.nix.age @@ -1,21 +0,0 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBTeitqbDNqVXZQT3J2SVkz -Smcvbks0NUxMaGQrSVI2K3QrZnBVeDdsR2xBCk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