nixpkgs/nixos/modules/system
aszlig 9d8a8126e9
systemd: Add support for path units.
This allows to define systemd.path(5) units, for example like this:

{
  systemd = let
    description = "Set Key Permissions for xyz.key";
  in {
    paths.set-key-perms = {
      inherit description;
      before = [ "network.target" ];
      wantedBy = [ "multi-user.target" ];
      pathConfig.PathChanged = "/run/keys/xyz.key";
    };

    services.set-key-perms = {
      inherit description;
      serviceConfig.Type = "oneshot";
      script = "chown myspecialkeyuser /run/keys/xyz.key";
    };
  };
}

The example here is actually useful in order to set permissions for the
NixOps keys target to ensure those permisisons aren't reset whenever the
key file is reuploaded.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-31 12:33:25 +02:00
..
activation switch-to-configuration: Don't try to start masked units 2014-03-12 18:52:11 +01:00
boot systemd: Add support for path units. 2014-03-31 12:33:25 +02:00
etc etc: uid/gid support for copied files 2014-02-23 18:00:47 -06:00
upstart Remove remaining references to Upstart 2013-10-31 13:26:06 +01:00