From 837b66f8fc285b9adf4ce1e12eaac6bbcf458a03 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Jul 2016 20:20:46 +0200 Subject: config errors --- bragi.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bragi.nix b/bragi.nix index 50f71dc3..d3c04f5a 100644 --- a/bragi.nix +++ b/bragi.nix @@ -300,7 +300,7 @@ in rec { runSqlite :: ReaderT ConnectionPool (LoggingT IO) a -> IO a runSqlite = runStderrLoggingT . withSqlitePool "${users.extraUsers."thermoprint".home}/thermoprint.sqlite" 1 . runReaderT - printers = [ (pure $ genericPrint "/dev/usb/lp0", def) + printers = [ (pure $ genericPrint "/dev/usb/lp0", def :: QMConfig (ResourceT (ReaderT ConnectionPool (LoggingT IO)))) ] queueManagers _ = QMConfig @@ -319,6 +319,7 @@ in rec { THERMOPRINT_CONFIG = "/etc/thermoprint-server"; THERMOPRINT_CACHE = ''${users.extraUsers."thermoprint".home}/dyre''; }; + wantedBy = [ "default.target" ]; serviceConfig = { Type = "simple"; ExecStart = ''${pkgs.thermoprint-server}/bin/thermoprint-server''; @@ -328,6 +329,7 @@ in rec { }; systemd.services."thermoprint-webgui" = { + wantedBy = [ "default.target" ]; serviceConfig = { Type = "simple"; ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 8080 -A localhost -a "*" -p 8081''; -- cgit v1.2.3