mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
migrate secrets to new structure
This commit is contained in:
parent
957225dd0d
commit
ca8a707ae2
7 changed files with 124 additions and 96 deletions
|
|
@ -3,7 +3,11 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/matrix/tuwunel.nix"
|
||||
];
|
||||
|
|
@ -15,6 +19,7 @@
|
|||
|
||||
sops.secrets."matrix/registration_token" = {
|
||||
owner = "tuwunel";
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
|
||||
services.matrix-tuwunel = {
|
||||
|
|
@ -32,14 +37,14 @@
|
|||
allow_encryption = true;
|
||||
allow_federation = true;
|
||||
require_auth_for_profile_requests = true; # no user enumeration
|
||||
trusted_servers = ["matrix.org"];
|
||||
trusted_servers = [ "matrix.org" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [8448];
|
||||
networking.firewall.allowedTCPPorts = [ 8448 ];
|
||||
|
||||
users.users.caddy.extraGroups = ["tuwunel"];
|
||||
users.users.caddy.extraGroups = [ "tuwunel" ];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue