summary refs log tree commit diff
path: root/nixos/modules/services/ttys
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-12 18:20:57 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-12 18:52:10 +0100
commit691c0cd72e96cc6c75b46112c287b07bd571df26 (patch)
tree8790b0add74b88afcf536d4ff4763e8a22c56d55 /nixos/modules/services/ttys
parent3358906395d2692dcda515418d6300ebed29a690 (diff)
downloadnixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar.gz
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar.bz2
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar.lz
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar.xz
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.tar.zst
nixpkgs-691c0cd72e96cc6c75b46112c287b07bd571df26.zip
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 'nixos/modules/services/ttys')
0 files changed, 0 insertions, 0 deletions