diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-08 14:56:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-08 14:56:51 +0200 |
commit | 83662088884fc593242fe09355ad2a6ce8017ad6 (patch) | |
tree | fc0949e38a21a5325e8e9ee9f486e77e1da8420e | |
parent | df665ee65e2261a96db3dbfc7fae59c4356a8877 (diff) | |
download | nixos-83662088884fc593242fe09355ad2a6ce8017ad6.tar nixos-83662088884fc593242fe09355ad2a6ce8017ad6.tar.gz nixos-83662088884fc593242fe09355ad2a6ce8017ad6.tar.bz2 nixos-83662088884fc593242fe09355ad2a6ce8017ad6.tar.xz nixos-83662088884fc593242fe09355ad2a6ce8017ad6.zip |
...
-rw-r--r-- | custom/bar-service.nix | 3 |
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}" = { |