nixpkgs/nixos/modules
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
..
config power-management: Don't enable acpid. 2014-03-15 12:17:00 +01:00
hardware Upgrade bumblebee and add nixos module 2014-02-09 15:09:41 +01:00
installer nixos-hardware-scan: Detect QEMU 2014-03-30 17:27:18 +02:00
misc nixos: add minecraft-server service 2014-03-29 05:31:27 -05:00
profiles Another attempt to fix the installer test 2014-03-30 16:53:23 +02:00
programs Merge branch 'zsh' of git://github.com/ttuegel/nixpkgs 2014-03-15 13:11:38 -04:00
security nixos: add Duo Security module 2014-03-16 07:11:50 -05:00
services Ensure that slim's theme applies to slimlock 2014-03-30 19:33:28 +02:00
system systemd: Add support for path units. 2014-03-31 12:33:25 +02:00
tasks nixos: Add ZFS auto-snapshotting module 2014-03-15 01:56:42 +01:00
testing Rename linuxManualConfig to buildLinux 2014-01-21 20:05:55 -05:00
virtualisation Fix VirtualBox image generation 2014-03-31 11:15:11 +02:00
module-list.nix nixos: add minecraft-server service 2014-03-29 05:31:27 -05:00
rename.nix move windowManager.xbmc to desktopManager.xbmc 2014-03-12 09:20:59 +01:00