From 002823adceee104f061a90f2c53f4dffeec73436 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 May 2018 12:29:00 +0200 Subject: recv --- nix/module.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nix/module.nix') diff --git a/nix/module.nix b/nix/module.nix index edc9bfb..40082b1 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -45,11 +45,17 @@ in { type = with types; listOf (submodule dirConfig); default = []; }; + + programs.recv.enable = mkEnableOption "the ‘recv’ program"; }; config = { nixpkgs.overlays = [ (import ./default.nix) ]; systemd.services = listToAttrs (map dirService config.services.rollingDirectories); + + security.wrappers = mkIf config.programs.recv.enable { + recv.source = "${pkgs.recv}/bin/recv"; + }; }; } -- cgit v1.2.3