From 3a1d40465d79305395839b633d98575db43d056c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 17 Oct 2015 23:42:15 +0200 Subject: ditto --- bragi.nix | 9 +++------ 1 file 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 { home = "/var/lib/thermoprint"; }; - let - user = user.extraUsers."thermoprint"; - in systemd.services."thermoprint" = { serviceConfig = { Type = "simple"; - ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${user.home}/database.sqlite /dev/usb/lp0''; - User = user.name; - Group = user.group; + ExecStart = ''${thermoprint-servant}/bin/thermoprint --database ${users.users."thermoprint".home}/database.sqlite /dev/usb/lp0''; + User = users.users."thermoprint".name; + Group = users.users."thermoprint".group; }; }; } -- cgit v1.2.3