Fix secret permission
This commit is contained in:
parent
b08a27c475
commit
5477c80ec6
2 changed files with 10 additions and 11 deletions
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{config, ...}:
|
||||
with config.constants; {
|
||||
hardware.graphics.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
{config, ...}: {
|
||||
services.coturn = with config.constants; let
|
||||
{config, ...}:
|
||||
with config.constants; let
|
||||
acmeDir = config.security.acme.certs.${coturn-realm}.directory;
|
||||
coturn-realm = "turn.${domain}";
|
||||
in {
|
||||
coturn-user = config.users.users.turnserver;
|
||||
in {
|
||||
services.coturn = {
|
||||
enable = true;
|
||||
cert = "${acmeDir}/fullchain.pem";
|
||||
listening-port = port.coturn;
|
||||
|
|
@ -15,5 +17,6 @@
|
|||
use-auth-secret = true;
|
||||
};
|
||||
|
||||
sops.secrets.coturn = {};
|
||||
security.acme.certs.${coturn-realm}.group = coturn-user.group;
|
||||
sops.secrets.coturn.owner = coturn-user.name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue