mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
tests: Refactor keys
This commit is contained in:
parent
d59a644c36
commit
7557252b22
36 changed files with 26 additions and 30 deletions
|
|
@ -6,21 +6,11 @@
|
|||
defaults =
|
||||
{ config, ... }:
|
||||
{
|
||||
custom = {
|
||||
services = {
|
||||
nebula = {
|
||||
caCertificateFile = ./keys/nebula/ca.crt;
|
||||
certificateFile = ./keys/nebula/${config.networking.hostName}.crt;
|
||||
privateKeyFile = ./keys/nebula/${config.networking.hostName}.key;
|
||||
};
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
deviceId = ./keys/syncthing/${config.networking.hostName}.id |> lib.readFile |> lib.trim;
|
||||
certFile = ./keys/syncthing/${config.networking.hostName}.cert;
|
||||
keyFile = ./keys/syncthing/${config.networking.hostName}.key;
|
||||
};
|
||||
};
|
||||
custom.services.syncthing = {
|
||||
enable = true;
|
||||
deviceId = ./keys/${config.networking.hostName}/syncthing.id |> lib.readFile |> lib.trim;
|
||||
certFile = ./keys/${config.networking.hostName}/syncthing.cert;
|
||||
keyFile = ./keys/${config.networking.hostName}/syncthing.key;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue