summaryrefslogtreecommitdiff
path: root/custom/bar-service.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/bar-service.nix')
-rw-r--r--custom/bar-service.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/custom/bar-service.nix b/custom/bar-service.nix
index 55e070b3..7c3684bf 100644
--- a/custom/bar-service.nix
+++ b/custom/bar-service.nix
@@ -52,6 +52,8 @@ in {
52 }; 52 };
53 }; 53 };
54 54
55 imports = optional cfg.enable ./thermoprint-service.nix;
56
55 config = mkIf cfg.enable { 57 config = mkIf cfg.enable {
56 assertions = [ 58 assertions = [
57 { assertion = config.services.postgresql.enable; 59 { assertion = config.services.postgresql.enable;
@@ -59,7 +61,6 @@ in {
59 } 61 }
60 ]; 62 ];
61 63
62 imports = [ ./thermoprint-service.nix ];
63 packages.thermoprint.enable = true; 64 packages.thermoprint.enable = true;
64 65
65 users.users."${cfg.user}" = { 66 users.users."${cfg.user}" = {