diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-16 13:20:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-16 13:20:51 +0200 |
commit | f59c0553147c02b4c925edf8c99596edbd1079e8 (patch) | |
tree | 7f4b37e5f0768fe114fd63e7bbd340d51afe60f2 /custom | |
parent | f8d562c8267635fe3a82b404f46626472ec34283 (diff) | |
download | nixos-f59c0553147c02b4c925edf8c99596edbd1079e8.tar nixos-f59c0553147c02b4c925edf8c99596edbd1079e8.tar.gz nixos-f59c0553147c02b4c925edf8c99596edbd1079e8.tar.bz2 nixos-f59c0553147c02b4c925edf8c99596edbd1079e8.tar.xz nixos-f59c0553147c02b4c925edf8c99596edbd1079e8.zip |
…
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 | } |