From f59c0553147c02b4c925edf8c99596edbd1079e8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 16 Apr 2018 13:20:51 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/trivmix-service.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index 14f2e3c8..1c1403ec 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix @@ -5,6 +5,8 @@ with lib; let cfg = config.services.trivmix; + trivmix = pkgs.haskellPackages.callPackage ./trivmix {}; + mixerModule = { options = { connectIn = mkOption { @@ -85,5 +87,9 @@ in { description = "Definition of mixers"; }; - config.systemd.services = mapAttrs service cfg; + config = mkIf (cfg != {}) { + environment.systemPackages = [ trivmix ]; + + systemd.services = mapAttrs service cfg; + }; } -- cgit v1.2.3