Just fuck the admin passwd

This commit is contained in:
niten 2024-01-26 15:06:19 -08:00
parent 88b8c4b3c0
commit 555a3eff5f
1 changed files with 9 additions and 9 deletions

View File

@ -23,10 +23,10 @@ in {
description = "Name of the Lemmy site.";
};
admin-password-file = mkOption {
type = str;
description = "Path to a file containing the administrator password.";
};
# admin-password-file = mkOption {
# type = str;
# description = "Path to a file containing the administrator password.";
# };
smtp = {
host = mkOption {
@ -77,10 +77,10 @@ in {
hostPath = "${cfg.state-directory}/pictrs";
isReadOnly = false;
};
"/run/lemmy-container/admin.passwd" = {
isReadOnly = true;
hostPath = cfg.admin-password-file;
};
# "/run/lemmy-container/admin.passwd" = {
# isReadOnly = true;
# hostPath = cfg.admin-password-file;
# };
};
additionalCapabilities = [ "CAP_SYS_ADMIN" ];
config = {
@ -112,7 +112,7 @@ in {
lemmy = {
enable = true;
database.uriFile = "/run/lemmy/postgresql.passwd";
adminPasswordFile = "/run/lemmy-container/admin.passwd";
# adminPasswordFile = "/run/lemmy-container/admin.passwd";
nginx.enable = true;
server.package = cfg.server-package;
settings = {