From 684ac4d13144ceb40797233ce9e8d80a222b9fa4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Jul 2016 14:01:51 +0200 Subject: thermoprint on bragi --- bragi.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bragi.nix b/bragi.nix index 49736a5b..55ed7646 100644 --- a/bragi.nix +++ b/bragi.nix @@ -18,6 +18,8 @@ in rec { boot.kernelParams = [ "console=ttyS0,115200" ]; + boot.kernelModules = [ "usblp" ]; + networking.hostName = "bragi"; networking.hostId = "2af11085"; networking.wireless.enable = true; @@ -270,14 +272,14 @@ in rec { home = "/var/lib/thermoprint"; }; - # systemd.services."thermoprint" = { - # serviceConfig = { - # Type = "simple"; - # ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.extraUsers."thermoprint".home}/database.sqlite /dev/usb/lp0''; - # User = users.extraUsers."thermoprint".name; - # Group = users.extraUsers."thermoprint".group; - # }; - # }; + systemd.services."thermoprint" = { + serviceConfig = { + Type = "simple"; + ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.extraUsers."thermoprint".home}/database.sqlite /dev/usb/lp0''; + User = users.extraUsers."thermoprint".name; + Group = users.extraUsers."thermoprint".group; + }; + }; nix = { daemonIONiceLevel = 3; -- cgit v1.2.3