summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-10-17 23:42:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-10-17 23:42:15 +0200
commit3a1d40465d79305395839b633d98575db43d056c (patch)
treea5efb1d3a877a3e90e5e3dd0cca24469d859dcbb /bragi.nix
parent5695ff29e0a35261a6915debc2c6d66afe7ca597 (diff)
downloadnixos-3a1d40465d79305395839b633d98575db43d056c.tar
nixos-3a1d40465d79305395839b633d98575db43d056c.tar.gz
nixos-3a1d40465d79305395839b633d98575db43d056c.tar.bz2
nixos-3a1d40465d79305395839b633d98575db43d056c.tar.xz
nixos-3a1d40465d79305395839b633d98575db43d056c.zip
ditto
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/bragi.nix b/bragi.nix
index eb237f62..514915a4 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -243,15 +243,12 @@ in {
243 home = "/var/lib/thermoprint"; 243 home = "/var/lib/thermoprint";
244 }; 244 };
245 245
246 let
247 user = user.extraUsers."thermoprint";
248 in
249 systemd.services."thermoprint" = { 246 systemd.services."thermoprint" = {
250 serviceConfig = { 247 serviceConfig = {
251 Type = "simple"; 248 Type = "simple";
252 ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${user.home}/database.sqlite /dev/usb/lp0''; 249 ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.users."thermoprint".home}/database.sqlite /dev/usb/lp0'';
253 User = user.name; 250 User = users.users."thermoprint".name;
254 Group = user.group; 251 Group = users.users."thermoprint".group;
255 }; 252 };
256 }; 253 };
257} 254}