From 83662088884fc593242fe09355ad2a6ce8017ad6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 8 Sep 2018 14:56:51 +0200 Subject: ... --- custom/bar-service.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { }; }; + imports = optional cfg.enable ./thermoprint-service.nix; + config = mkIf cfg.enable { assertions = [ { assertion = config.services.postgresql.enable; @@ -59,7 +61,6 @@ in { } ]; - imports = [ ./thermoprint-service.nix ]; packages.thermoprint.enable = true; users.users."${cfg.user}" = { -- cgit v1.2.3