diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-17 14:01:51 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-17 14:01:51 +0200 |
commit | 684ac4d13144ceb40797233ce9e8d80a222b9fa4 (patch) | |
tree | 53b733694093e34fe284680f7898c10f5a26da55 | |
parent | d41b2121af945ed21871273c74b175cc3a4ee824 (diff) | |
download | nixos-684ac4d13144ceb40797233ce9e8d80a222b9fa4.tar nixos-684ac4d13144ceb40797233ce9e8d80a222b9fa4.tar.gz nixos-684ac4d13144ceb40797233ce9e8d80a222b9fa4.tar.bz2 nixos-684ac4d13144ceb40797233ce9e8d80a222b9fa4.tar.xz nixos-684ac4d13144ceb40797233ce9e8d80a222b9fa4.zip |
thermoprint on bragi
-rw-r--r-- | bragi.nix | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -18,6 +18,8 @@ in rec { | |||
18 | boot.kernelParams = [ "console=ttyS0,115200" | 18 | boot.kernelParams = [ "console=ttyS0,115200" |
19 | ]; | 19 | ]; |
20 | 20 | ||
21 | boot.kernelModules = [ "usblp" ]; | ||
22 | |||
21 | networking.hostName = "bragi"; | 23 | networking.hostName = "bragi"; |
22 | networking.hostId = "2af11085"; | 24 | networking.hostId = "2af11085"; |
23 | networking.wireless.enable = true; | 25 | networking.wireless.enable = true; |
@@ -270,14 +272,14 @@ in rec { | |||
270 | home = "/var/lib/thermoprint"; | 272 | home = "/var/lib/thermoprint"; |
271 | }; | 273 | }; |
272 | 274 | ||
273 | # systemd.services."thermoprint" = { | 275 | systemd.services."thermoprint" = { |
274 | # serviceConfig = { | 276 | serviceConfig = { |
275 | # Type = "simple"; | 277 | Type = "simple"; |
276 | # ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.extraUsers."thermoprint".home}/database.sqlite /dev/usb/lp0''; | 278 | ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.extraUsers."thermoprint".home}/database.sqlite /dev/usb/lp0''; |
277 | # User = users.extraUsers."thermoprint".name; | 279 | User = users.extraUsers."thermoprint".name; |
278 | # Group = users.extraUsers."thermoprint".group; | 280 | Group = users.extraUsers."thermoprint".group; |
279 | # }; | 281 | }; |
280 | # }; | 282 | }; |
281 | 283 | ||
282 | nix = { | 284 | nix = { |
283 | daemonIONiceLevel = 3; | 285 | daemonIONiceLevel = 3; |