gerd.murmur: set superpassword on boot

This commit is contained in:
eyjhb 2024-08-09 23:07:51 +02:00
parent 5ff8a7a1bd
commit 8169ee57b0
Signed by: eyjhb
GPG key ID: 609F508E3239F920
4 changed files with 16 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
services.murmur = let
@ -15,6 +15,9 @@
welcometext = "Welcome to Friclouds Mumble server!";
};
# set superpassword on start from secrets
systemd.services.murmur.preStart = lib.mkAfter ''${config.services.murmur.package}/bin/mumble-server -ini /run/murmur/murmurd.ini -readsupw < ${config.age.secrets.murmur-superpassword.path}'';
services.nginx.virtualHosts."mumble.fricloud.dk" = {
forceSSL = true;
enableACME = true;
@ -36,6 +39,7 @@
age.secrets = {
murmur-env.owner = config.users.users.murmur.name;
murmur-superpassword.owner = config.users.users.murmur.name;
};
environment.persistence.root.directories = [