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: improve support for env vars

This commit is contained in:
Luke Worth 2024-07-03 10:34:58 +10:00
parent ec12b88104
commit 758f62d39d
No known key found for this signature in database
GPG key ID: 650BF91A25815385

View file

@ -20,6 +20,17 @@ in
description = "Whether to make the nix-daemon service socket activated.";
};
services.nix-daemon.environmentVariables = mkOption {
type = types.attrsOf types.str;
default = { };
example = {
AWS_CONFIG_FILE = "/etc/nix/aws/config";
AWS_SHARED_CREDENTIALS_FILE = "/etc/nix/aws/credentials";
NIX_SSL_CERT_FILE = "/etc/nix/my-cert-file.crt";
};
description = "Extra environment variables provided to nix-daemon";
};
services.nix-daemon.logFile = mkOption {
type = types.nullOr types.path;
default = null;
@ -62,6 +73,7 @@ in
};
serviceConfig.EnvironmentVariables = mkMerge [
cfg.environmentVariables
config.nix.envVars
{
NIX_SSL_CERT_FILE = mkIf