summaryrefslogtreecommitdiff
path: root/custom/thermoprint-service.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/thermoprint-service.nix')
-rw-r--r--custom/thermoprint-service.nix19
1 files changed, 16 insertions, 3 deletions
diff --git a/custom/thermoprint-service.nix b/custom/thermoprint-service.nix
index 8773706c..30588d43 100644
--- a/custom/thermoprint-service.nix
+++ b/custom/thermoprint-service.nix
@@ -2,13 +2,26 @@
2 2
3with lib; 3with lib;
4 4
5{ 5let
6 config = { 6 pCfg = config.packages.thermoprint;
7in {
8 options = {
9 packages.thermoprint = {
10 enable = mkEnableOption "thermoprint packages";
11
12 extraServerPackages = mkOption {
13 type = types.unspecified;
14 default = p: [];
15 };
16 };
17 };
18
19 config = mkIf pCfg.enable {
7 nixpkgs.overlays = [(selfPkgs: superPkgs: { 20 nixpkgs.overlays = [(selfPkgs: superPkgs: {
8 haskellPackages = superPkgs.haskellPackages.extend (selfH: superH: 21 haskellPackages = superPkgs.haskellPackages.extend (selfH: superH:
9 import ./custom/thermoprint { 22 import ./custom/thermoprint {
10 callPackage = superPkgs.lib.callPackageWith (selfH // { inherit (superPkgs) stdenv makeWrapper runCommand; }); 23 callPackage = superPkgs.lib.callPackageWith (selfH // { inherit (superPkgs) stdenv makeWrapper runCommand; });
11 extraPackages = (p: []); 24 extraPackages = pCfg.extraServerPackages;
12 } 25 }
13 ); 26 );
14 27