diff options
| -rw-r--r-- | bragi.nix | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -300,7 +300,7 @@ in rec { | |||
| 300 | runSqlite :: ReaderT ConnectionPool (LoggingT IO) a -> IO a | 300 | runSqlite :: ReaderT ConnectionPool (LoggingT IO) a -> IO a |
| 301 | runSqlite = runStderrLoggingT . withSqlitePool "${users.extraUsers."thermoprint".home}/thermoprint.sqlite" 1 . runReaderT | 301 | runSqlite = runStderrLoggingT . withSqlitePool "${users.extraUsers."thermoprint".home}/thermoprint.sqlite" 1 . runReaderT |
| 302 | 302 | ||
| 303 | printers = [ (pure $ genericPrint "/dev/usb/lp0", def) | 303 | printers = [ (pure $ genericPrint "/dev/usb/lp0", def :: QMConfig (ResourceT (ReaderT ConnectionPool (LoggingT IO)))) |
| 304 | ] | 304 | ] |
| 305 | 305 | ||
| 306 | queueManagers _ = QMConfig | 306 | queueManagers _ = QMConfig |
| @@ -319,6 +319,7 @@ in rec { | |||
| 319 | THERMOPRINT_CONFIG = "/etc/thermoprint-server"; | 319 | THERMOPRINT_CONFIG = "/etc/thermoprint-server"; |
| 320 | THERMOPRINT_CACHE = ''${users.extraUsers."thermoprint".home}/dyre''; | 320 | THERMOPRINT_CACHE = ''${users.extraUsers."thermoprint".home}/dyre''; |
| 321 | }; | 321 | }; |
| 322 | wantedBy = [ "default.target" ]; | ||
| 322 | serviceConfig = { | 323 | serviceConfig = { |
| 323 | Type = "simple"; | 324 | Type = "simple"; |
| 324 | ExecStart = ''${pkgs.thermoprint-server}/bin/thermoprint-server''; | 325 | ExecStart = ''${pkgs.thermoprint-server}/bin/thermoprint-server''; |
| @@ -328,6 +329,7 @@ in rec { | |||
| 328 | }; | 329 | }; |
| 329 | 330 | ||
| 330 | systemd.services."thermoprint-webgui" = { | 331 | systemd.services."thermoprint-webgui" = { |
| 332 | wantedBy = [ "default.target" ]; | ||
| 331 | serviceConfig = { | 333 | serviceConfig = { |
| 332 | Type = "simple"; | 334 | Type = "simple"; |
| 333 | ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 8080 -A localhost -a "*" -p 8081''; | 335 | ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 8080 -A localhost -a "*" -p 8081''; |
