1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

services/nix-daemon: default environmentVariables to config.nix.envVars

The new `services.nix-daemon.environmentVariables` seems more idiomatic
so let's gracefully deprecate `config.nix.envVars` (which was only ever
used here).
This commit is contained in:
Luke Worth 2024-07-03 10:48:00 +10:00
parent 758f62d39d
commit daba515ea4
No known key found for this signature in database
GPG key ID: 650BF91A25815385

View file

@ -22,7 +22,9 @@ in
services.nix-daemon.environmentVariables = mkOption {
type = types.attrsOf types.str;
default = { };
default =
# See https://github.com/LnL7/nix-darwin/commit/a9e0f71c50fc9a72e22e991e323a6a7e50bfc0d7.
config.nix.envVars;
example = {
AWS_CONFIG_FILE = "/etc/nix/aws/config";
AWS_SHARED_CREDENTIALS_FILE = "/etc/nix/aws/credentials";
@ -74,7 +76,6 @@ in
serviceConfig.EnvironmentVariables = mkMerge [
cfg.environmentVariables
config.nix.envVars
{
NIX_SSL_CERT_FILE = mkIf
(config.environment.variables ? NIX_SSL_CERT_FILE)