nixpkgs/nixos/modules/system/boot
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
..
loader memtest.nix: Use toString 2014-02-18 19:13:07 +01:00
kernel.nix Always load the "configs" kernel module 2014-03-05 15:22:32 +01:00
kexec.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
luksroot.nix Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
modprobe.nix pull module blacklist from Ubuntu and use it by default 2014-01-28 12:52:36 +01:00
pbkdf2-sha512.c Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
readonly-mountpoint.c Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
shutdown.nix Disable various services when running inside a container 2013-11-26 18:19:45 +01:00
stage-1-init.sh typo: occured -> occurred 2014-03-07 19:39:55 +01:00
stage-1.nix Add support for lightweight NixOS containers 2013-11-27 17:14:10 +01:00
stage-2-init.sh Add a keys group with read access to /run/keys 2014-02-11 07:00:10 -05:00
stage-2.nix Add lots of missing option types 2013-10-30 18:47:43 +01:00
systemd-unit-options.nix systemd: Allow customisation of upstream units 2014-03-12 18:52:10 +01:00
systemd.nix systemd: Allow customisation of upstream units 2014-03-12 18:52:10 +01:00