diff options
| author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12 18:20:57 +0100 |
|---|---|---|
| committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12 18:52:10 +0100 |
| commit | 691c0cd72e96cc6c75b46112c287b07bd571df26 (patch) | |
| tree | 8790b0add74b88afcf536d4ff4763e8a22c56d55 /pkgs/development/python-modules/GitPython | |
| parent | 3358906395d2692dcda515418d6300ebed29a690 (diff) | |
systemd: Allow customisation of upstream units
You can now say:
systemd.services.foo.baseUnit = "${pkgs.foo}/.../foo.service";
This will cause NixOS' generated foo.service file to include
foo.service from the foo package. You can then apply local
customization in the usual way:
systemd.services.foo.serviceConfig.MemoryLimit = "512M";
Note however that overriding options in the original unit may not
work. For instance, you cannot override ExecStart.
It's also possible to customize instances of template units:
systemd.services."getty@tty4" =
{ baseUnit = "/etc/systemd/system/getty@.service";
serviceConfig.MemoryLimit = "512M";
};
This replaces the unit options linkTarget (which didn't allow
customisation) and extraConfig (which did allow customisation, but in
a non-standard way).
Diffstat (limited to 'pkgs/development/python-modules/GitPython')
0 files changed, 0 insertions, 0 deletions
