diff options
Diffstat (limited to 'custom/bar-service.nix')
-rw-r--r-- | custom/bar-service.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/custom/bar-service.nix b/custom/bar-service.nix index 9a48d960..a5bb9626 100644 --- a/custom/bar-service.nix +++ b/custom/bar-service.nix | |||
@@ -52,15 +52,17 @@ in { | |||
52 | }; | 52 | }; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | config = mkIf cfg.enable { | 55 | imports = mkIf cfg.enable [ ./thermoprint-service.nix ]; |
56 | imports = [ ./thermoprint-service.nix ]; | ||
57 | 56 | ||
57 | config = mkIf cfg.enable { | ||
58 | assertions = [ | 58 | assertions = [ |
59 | { assertion = config.services.postgresql.enable; | 59 | { assertion = config.services.postgresql.enable; |
60 | message = "bar requires PostgreSQL"; | 60 | message = "bar requires PostgreSQL"; |
61 | } | 61 | } |
62 | ]; | 62 | ]; |
63 | 63 | ||
64 | packages.thermoprint.enable = true; | ||
65 | |||
64 | users.users."${cfg.user}" = { | 66 | users.users."${cfg.user}" = { |
65 | group = cfg.group; | 67 | group = cfg.group; |
66 | description = "User for the Bar Inventory System"; | 68 | description = "User for the Bar Inventory System"; |