diff options
Diffstat (limited to 'custom/bar-service.nix')
-rw-r--r-- | custom/bar-service.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/custom/bar-service.nix b/custom/bar-service.nix index 2a492ce1..aa08f7cd 100644 --- a/custom/bar-service.nix +++ b/custom/bar-service.nix | |||
@@ -53,6 +53,8 @@ in { | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | config = mkIf cfg.enable { | 55 | config = mkIf cfg.enable { |
56 | imports = [ ./thermoprint-service.nix ]; | ||
57 | |||
56 | assertions = [ | 58 | assertions = [ |
57 | { assertion = config.services.postgresql.enable; | 59 | { assertion = config.services.postgresql.enable; |
58 | message = "bar requires PostgreSQL"; | 60 | message = "bar requires PostgreSQL"; |
@@ -69,8 +71,12 @@ in { | |||
69 | 71 | ||
70 | users.groups."${cfg.group}" = {}; | 72 | users.groups."${cfg.group}" = {}; |
71 | 73 | ||
72 | nixpkgs.overlays = [(self: super: { | 74 | nixpkgs.overlays = [(selfPkgs: superPkgs: { |
73 | bar = self.callPackage ./bar { inherit (self) haskellPackages; }; | 75 | haskellPackages = superPkgs.haskellPackages.extend (selfH: superH: { |
76 | bar = superPkgs.callPackage ./bar { haskellPackages = selfH }; | ||
77 | }); | ||
78 | |||
79 | inherit (selfPkgs.haskellPackages) bar; | ||
74 | })]; | 80 | })]; |
75 | 81 | ||
76 | systemd.services."bar" = { | 82 | systemd.services."bar" = { |