alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
syncthing: fix secret generation
author
lassulus
date
3 years ago
(Oct 5, 2023, 11:59 AM CEST)
commit
dda8aac2
dda8aac25747fab9fb43032cc2cdcfe901c39ec6
parent
e2987006
e2987006048e4de062ae90e93137976efd31de70
+2
-2
1 changed file
Expand all
Collapse all
Unified
Split
nixos
2configs
syncthing.nix
+2
-2
nixos/2configs/syncthing.nix
View file
Reviewed
···
22
22
facts."syncthing.pub" = { };
23
23
generator = ''
24
24
${pkgs.syncthing}/bin/syncthing generate --config "$secrets"
25
25
-
mv "$secrets"/key.pem "$secrets"/syncthing.cert
26
26
-
mv "$secrets"/cert.pem "$secrets"/syncthing.key
25
25
+
mv "$secrets"/key.pem "$secrets"/syncthing.key
26
26
+
mv "$secrets"/cert.pem "$secrets"/syncthing.cert
27
27
cat "$secrets"/config.xml | ${pkgs.gnugrep}/bin/grep -oP '(?<=<device id=")[^"]+' > "$facts"/syncthing.pub
28
28
'';
29
29
};