mob next [ci-skip] [ci skip] [skip ci]

lastFile:machines/deneb/configuration.nix
This commit is contained in:
2026-04-09 14:20:49 +07:00
parent f8e4ef9daf
commit 3ab6e2e636

View File

@@ -24,12 +24,15 @@ in
group = "nginx"; group = "nginx";
secret = true; secret = true;
}; };
adminPassword.secret = true;
}; };
runtimeInputs = [ runtimeInputs = with pkgs; [
pkgs.openssl openssl
xkcdpass
]; ];
script = '' script = ''
openssl req -x509 -newkey rsa:4096 -keyout $out/sslCertificateKey -out $out/sslCertificate -sha256 -days 3650 -nodes -subj "/C=TH/ST=ChiangMai/L=ChiangMai/O=kurogeek/CN=kurogeek.home" openssl req -x509 -newkey rsa:4096 -keyout $out/sslCertificateKey -out $out/sslCertificate -sha256 -days 3650 -nodes -subj "/C=TH/ST=ChiangMai/L=ChiangMai/O=kurogeek/CN=kurogeek.home"
xkcdpass --numwords 4 --delimiter - --count 1 | tr -d "\n" > "$out"/adminPassword
''; '';
}; };
@@ -37,7 +40,7 @@ in
enable = true; enable = true;
project = "poyerp"; project = "poyerp";
gunicorn_workers = 2; gunicorn_workers = 2;
adminPassword = builtins.toFile "admin-pass" "qwer123"; adminPassword = config.clan.core.vars.generators.frappix.files.adminPassword.path;
apps = [ apps = [
pkgs.frappix.erpnext pkgs.frappix.erpnext
]; ];