forked from Fediversity/Fediversity
- simplify the configuration module the `package` attribute makes little sense to be user-configurable, since it will always need to be the derivation defined in this very repository. for debugging one may as well change the original code itself. - unbreak deployment setting `CREDENTIALS_DIRECTORY` disabled the systemd mechanism set up in the configuration module. - remove unneeded configuration for deployment - unbreak integration tests before that missed waiting for the service to create some state before running the application-level tests.
27 lines
410 B
Nix
27 lines
410 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
name = "panel";
|
|
in
|
|
{
|
|
imports = [
|
|
(import ../../../panel { }).module
|
|
];
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "beheer@procolix.com";
|
|
};
|
|
|
|
services.${name} = {
|
|
enable = true;
|
|
production = true;
|
|
domain = "demo.fediversity.eu";
|
|
secrets = {
|
|
SECRET_KEY = config.age.secrets.panel-secret-key.path;
|
|
};
|
|
port = 8000;
|
|
};
|
|
}
|