3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
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
..
config Merge pull request #1767 from the-kenny/fix-consoleKeyMap-type 2014-03-08 18:04:55 +01:00
hardware Upgrade bumblebee and add nixos module 2014-02-09 15:09:41 +01:00
installer typo: occured -> occurred 2014-03-07 19:39:55 +01:00
misc searx: add module 2014-03-09 17:33:56 +01:00
profiles remove references to isSystemUser and fix eval of tested job 2014-02-08 21:10:00 +01:00
programs add gstreamer 1.0 setup-hook and use it where appropriate 2014-02-28 02:03:07 +01:00
security Remove /etc/ca-bundle.crt 2014-02-11 17:13:36 +01:00
services apcupsd: Description -> description 2014-03-12 18:52:10 +01:00
system systemd: Allow customisation of upstream units 2014-03-12 18:52:10 +01:00
tasks nixos/network-interfaces: do not try to enable or disable ipv6 in container 2014-03-10 12:39:22 +01:00
testing Rename linuxManualConfig to buildLinux 2014-01-21 20:05:55 -05:00
virtualisation Make initialRootPassword overrideable in all virtualisation modules, not just virtualbox. 2014-02-24 18:05:26 +01:00
module-list.nix Add phpfpm NixOS service module 2014-03-12 11:38:50 +01:00
rename.nix move windowManager.xbmc to desktopManager.xbmc 2014-03-12 09:20:59 +01:00