summaryrefslogtreecommitdiff
path: root/custom/trivmix-service.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-08 14:37:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-08 14:37:34 +0200
commitc88ee737b8c44162c640a4c865336c5a843029ea (patch)
tree05d83de63566305ddb397fe1453ceeb986ac6847 /custom/trivmix-service.nix
parentcab8330b015ab19758b0051c417c345474dcb01f (diff)
downloadnixos-c88ee737b8c44162c640a4c865336c5a843029ea.tar
nixos-c88ee737b8c44162c640a4c865336c5a843029ea.tar.gz
nixos-c88ee737b8c44162c640a4c865336c5a843029ea.tar.bz2
nixos-c88ee737b8c44162c640a4c865336c5a843029ea.tar.xz
nixos-c88ee737b8c44162c640a4c865336c5a843029ea.zip
Simplify bragi, move bar to odin
Diffstat (limited to 'custom/trivmix-service.nix')
-rw-r--r--custom/trivmix-service.nix8
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;
5let 5let
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 };