nixpkgs/nixos/modules
Eelco Dolstra e34a1589fe Add support for user units
With ‘systemd.user.units’ and ‘systemd.user.services’, you can specify
units used by per-user systemd instances.  For example,

  systemd.user.services.foo =
    { description = "foo";
      wantedBy = [ "default.target" ];
      serviceConfig.ExecStart = "${pkgs.foo}/bin/foo";
    };

declares a unit ‘foo.service’ that gets started automatically when the
user systemd instance starts, and is stopped when the user systemd
instance stops.

Note that there is at most one systemd instance per user: it's created
when a user logs in and there is no systemd instance for that user
yet, and it's removed when the user fully logs out (i.e. has no
sessions anymore). So if you're simultaneously logged in via X11 and a
virtual console, you get only one copy of foo.
2014-04-18 00:38:40 +02:00
..
config Allow upstream systemd units to be extended 2014-04-17 18:52:31 +02:00
hardware mesa: have all output on /run/opengl-driver{,-32} 2014-04-14 21:38:23 +02:00
installer nixos-rebuild: Fallback for upgrading Nix 2014-04-15 12:07:34 +02:00
misc nixos: add spiped service module 2014-04-15 03:33:47 -05:00
profiles no-x-libs.nix: Disable su xauth forwarding, and X11 dependency in dbus 2014-04-16 16:58:06 +02:00
programs Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
security Apply pam_loginuid before pam_systemd 2014-04-17 11:35:18 +02:00
services Allow upstream systemd units to be extended 2014-04-17 18:52:31 +02:00
system Add support for user units 2014-04-18 00:38:40 +02:00
tasks Allow upstream systemd units to be extended 2014-04-17 18:52:31 +02:00
testing Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
virtualisation Drop ALSA dependency in containers 2014-04-16 01:44:43 +02:00
module-list.nix nixos: add spiped service module 2014-04-15 03:33:47 -05:00
rename.nix Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00