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
|
services.murmur = let
|
||||||
|
@ -15,6 +15,9 @@
|
||||||
welcometext = "Welcome to Friclouds Mumble server!";
|
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" = {
|
services.nginx.virtualHosts."mumble.fricloud.dk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
@ -36,6 +39,7 @@
|
||||||
|
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
murmur-env.owner = config.users.users.murmur.name;
|
murmur-env.owner = config.users.users.murmur.name;
|
||||||
|
murmur-superpassword.owner = config.users.users.murmur.name;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence.root.directories = [
|
environment.persistence.root.directories = [
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
|
|
||||||
# mumble
|
# mumble
|
||||||
murmur-env.file = ./murmur/env.age;
|
murmur-env.file = ./murmur/env.age;
|
||||||
|
murmur-superpassword.file = ./murmur/superpassword.age;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
9
secrets/murmur/superpassword.age
Normal file
9
secrets/murmur/superpassword.age
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 QSDXqg LoWIvj4OQjNPaGbtQYSUEKtkqvcVa2pPisjyXL6ajy0
|
||||||
|
ZfLdRcsWa4Nc6HdiWO1GCgSgHm7aZeUdEDCjUCn6CuY
|
||||||
|
-> ssh-ed25519 n8n9DQ e7DWlUZdaDPgoS0Ylnxtf80IN+QMtCJ48oI4Z4U9+0I
|
||||||
|
/2ZleHBcAkWh8Udt6D2QgBOCTKkqH3GIsGsGexpAaxA
|
||||||
|
-> ssh-ed25519 BTp6UA bgTa1+cFzW07nPhe/5GKW1RreVO5IqIzvPZTYpnrGjY
|
||||||
|
7F4HnAnHVZX+dfOpc5mPB4/TTgPgw8hiIyVTEbffRQw
|
||||||
|
--- IrCqHtOIS3c5By3cBTPQAGpM2GzCu61AhiavRjozk7o
|
||||||
|
<EFBFBD>hカ<15>ネ都・ケ5+RBi}マ黍<EFBE8F>ヘ瀨 ハN$wト:カ![オs<EFBDB5>ツ、゙<EFBDA4>ホア、<EFBDB1>.ョgR・ト「>
|
|
@ -23,4 +23,5 @@ in
|
||||||
|
|
||||||
# mumble
|
# mumble
|
||||||
"murmur/env.age".publicKeys = defaultAccess;
|
"murmur/env.age".publicKeys = defaultAccess;
|
||||||
|
"murmur/superpassword.age".publicKeys = defaultAccess;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue