diff options
Diffstat (limited to 'custom/trivmix-service.nix')
-rw-r--r-- | custom/trivmix-service.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index fc69d93e..f278c7eb 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix | |||
@@ -5,8 +5,6 @@ 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 | |||
10 | mixerModule = { | 8 | mixerModule = { |
11 | options = { | 9 | options = { |
12 | connectIn = mkOption { | 10 | connectIn = mkOption { |
@@ -117,7 +115,11 @@ in { | |||
117 | }; | 115 | }; |
118 | 116 | ||
119 | config = mkIf (cfg.mixers != {}) { | 117 | config = mkIf (cfg.mixers != {}) { |
120 | environment.systemPackages = [ trivmix ]; | 118 | nixpkgs.overlays = [(self: super: { |
119 | trivmix = self.haskellPackages.callPackage ./trivmix {}; | ||
120 | })]; | ||
121 | |||
122 | environment.systemPackages = with pkgs; [ trivmix ]; | ||
121 | 123 | ||
122 | systemd.services = mapAttrs service cfg.mixers; | 124 | systemd.services = mapAttrs service cfg.mixers; |
123 | }; | 125 | }; |