forked from Fediversity/Fediversity
38 lines
703 B
Nix
38 lines
703 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";
|
|
};
|
|
};
|
|
}
|