summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-10-17 23:38:58 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-10-17 23:38:58 +0200
commit5695ff29e0a35261a6915debc2c6d66afe7ca597 (patch)
tree315de1e1a016657fddb4ee519aacdb137f75ca2c
parent662897664e65a5ecea1252649d219898805f0a9f (diff)
downloadnixos-5695ff29e0a35261a6915debc2c6d66afe7ca597.tar
nixos-5695ff29e0a35261a6915debc2c6d66afe7ca597.tar.gz
nixos-5695ff29e0a35261a6915debc2c6d66afe7ca597.tar.bz2
nixos-5695ff29e0a35261a6915debc2c6d66afe7ca597.tar.xz
nixos-5695ff29e0a35261a6915debc2c6d66afe7ca597.zip
fixed last commit
-rw-r--r--bragi.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/bragi.nix b/bragi.nix
index 35833925..eb237f62 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -243,12 +243,15 @@ in {
243 home = "/var/lib/thermoprint"; 243 home = "/var/lib/thermoprint";
244 }; 244 };
245 245
246 systemd.services."thermoprint" = { 246 let
247 serviceConfig = { 247 user = user.extraUsers."thermoprint";
248 Type = "simple"; 248 in
249 ExecStart = ''${thermoprint-servant}/bin/thermoprint --database /var/thermoprint/database.sqlite /dev/usb/lp0''; 249 systemd.services."thermoprint" = {
250 User = "thermoprint"; 250 serviceConfig = {
251 Group = "lp"; 251 Type = "simple";
252 ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${user.home}/database.sqlite /dev/usb/lp0'';
253 User = user.name;
254 Group = user.group;
255 };
252 }; 256 };
253 };
254} 257}