nixpkgs/nixos/modules/system/boot
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
..
loader memtest.nix: Use toString 2014-02-18 19:13:07 +01:00
kernel.nix Run hwclock --hctosys to initialize the system time 2014-03-18 23:14:34 +01:00
kexec.nix
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
shutdown.nix
stage-1-init.sh typo: occured -> occurred 2014-03-07 19:39:55 +01:00
stage-1.nix
stage-2-init.sh Set /run/keys ownership based on numerical ids 2014-03-19 05:18:24 -04:00
stage-2.nix
systemd-unit-options.nix systemd: Add support for path units. 2014-03-31 12:33:25 +02:00
systemd.nix systemd: Add support for path units. 2014-03-31 12:33:25 +02:00