feat(monica): try
This commit is contained in:
parent
ce1e257861
commit
791dcd4f92
2 changed files with 27 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./monica.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
|
26
machines/kat-manah/monica.nix
Normal file
26
machines/kat-manah/monica.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
hostname = "monica.katvayor.net";
|
||||
key_lock = "/run/keys/monica-appkey";
|
||||
in
|
||||
{
|
||||
kat.proxies.aliases = [ hostname ];
|
||||
services.monica = {
|
||||
inherit hostname;
|
||||
enable = true;
|
||||
nginx = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
appKeyFile = key_lock;
|
||||
config.APP_DISABLE_SIGNUP = true;
|
||||
};
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"r ${key_lock} - - - - -"
|
||||
"C ${key_lock} - - - - /root/secrets/monica-appkey"
|
||||
"z ${key_lock} 0400 ${config.services.monica.user} ${config.services.monica.group} - -"
|
||||
];
|
||||
};
|
||||
users.users."${config.services.monica.user}".extraGroups = [ "keys" ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue