gerd.murmur: set superpassword on boot
This commit is contained in:
parent
5ff8a7a1bd
commit
8169ee57b0
4 changed files with 16 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue