forked from Fediversity/Fediversity
39 lines
756 B
Nix
39 lines
756 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
name = "panel";
|
|
panel = (import ../../../panel/default.nix { }).package;
|
|
in
|
|
{
|
|
imports = [
|
|
../../../panel/nix/configuration.nix
|
|
];
|
|
|
|
environment.systemPackages = [
|
|
panel
|
|
];
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "beheer@procolix.com";
|
|
};
|
|
|
|
services.${name} = {
|
|
enable = true;
|
|
package = panel;
|
|
production = true;
|
|
domain = "demo.fediversity.eu";
|
|
host = "0.0.0.0";
|
|
secrets = {
|
|
SECRET_KEY = config.age.secrets.panel-secret-key.path;
|
|
};
|
|
port = 80;
|
|
settings = {
|
|
DATABASE_URL = "sqlite:///var/lib/${name}/db.sqlite3";
|
|
CREDENTIALS_DIRECTORY = "/var/lib/${name}/.credentials";
|
|
STATIC_ROOT = "/var/lib/${name}/static";
|
|
};
|
|
};
|
|
}
|