diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/trivmix-service.nix | 8 |
1 files changed, 7 insertions, 1 deletions
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; | |||
5 | let | 5 | let |
6 | cfg = config.services.trivmix; | 6 | cfg = config.services.trivmix; |
7 | 7 | ||
8 | trivmix = pkgs.haskellPackages.callPackage ./trivmix {}; | ||
9 | |||
8 | mixerModule = { | 10 | mixerModule = { |
9 | options = { | 11 | options = { |
10 | connectIn = mkOption { | 12 | connectIn = mkOption { |
@@ -85,5 +87,9 @@ in { | |||
85 | description = "Definition of mixers"; | 87 | description = "Definition of mixers"; |
86 | }; | 88 | }; |
87 | 89 | ||
88 | config.systemd.services = mapAttrs service cfg; | 90 | config = mkIf (cfg != {}) { |
91 | environment.systemPackages = [ trivmix ]; | ||
92 | |||
93 | systemd.services = mapAttrs service cfg; | ||
94 | }; | ||
89 | } | 95 | } |