Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batou_ext.cron.SystemdTimer: values of additional_service_config are not quoted #176

Open
Ma27 opened this issue May 29, 2024 · 0 comments

Comments

@Ma27
Copy link
Member

Ma27 commented May 29, 2024

Given the following configuration:

self += batou_ext.cron.SystemdTimer(
  # ...
  additional_service_config = {
    "WorkingDirectory": "/var/lib/foo"
  }
)

the Nix configuration will look like this:

{
  # ...
  WorkingDirectory = /var/lib/foo;
}

This is dangerous because in some cases the entire directory would be copied into the Nix store. This is not only problematic because the store is world-readable, this can also slow down evaluation significantly.

In other words, I'd expect to get WorkingDirectory = "/var/lib/foo"; given the config above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant