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:
Charles Hall 2024-06-06 21:47:03 -07:00
parent 9b115b4110
commit 9a92a8047e
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 2 additions and 14 deletions

View file

@ -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 = {