Skip to content

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

Description

@Ma27

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions