mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
drop support for environment variables
The configuration file is now the canonical way to, well, configure. This change is desirable because it gives us much more flexibility with how configuration is structured. Environment variables are insufficient because, for example, they're a flat namespace and have no built-in way to represent lists.
This commit is contained in:
parent
9b115b4110
commit
9a92a8047e
2 changed files with 2 additions and 14 deletions
|
|
@ -25,15 +25,6 @@ in
|
|||
pkgsText = "inputs.grapevine.packages.\${pkgs.system}";
|
||||
};
|
||||
|
||||
extraEnvironment = lib.mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
description = ''
|
||||
Extra environment variables to set for the process.
|
||||
'';
|
||||
default = {};
|
||||
example = { RUST_BACKTRACE="yes"; };
|
||||
};
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = types.submodule {
|
||||
freeformType = format.type;
|
||||
|
|
@ -85,7 +76,6 @@ in
|
|||
systemd.services.grapevine = {
|
||||
description = "Grapevine (Matrix homeserver)";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = cfg.extraEnvironment;
|
||||
|
||||
# Keep sorted
|
||||
serviceConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue