nixpkgs/nixos/modules/system
Eelco Dolstra 691c0cd72e 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).
2014-03-12 18:52:10 +01:00
..
activation switch-to-configuration.pl: Handle successful auto-restarts 2014-02-02 15:56:22 +01:00
boot systemd: Allow customisation of upstream units 2014-03-12 18:52:10 +01:00
etc Make /etc/localtime a direct symlink to the zoneinfo file 2014-01-06 18:23:41 +01:00
upstart Remove remaining references to Upstart 2013-10-31 13:26:06 +01:00