diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-17 21:40:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-17 21:40:51 +0200 |
commit | baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa (patch) | |
tree | 4623a453f54caa11650d7e2fcc7fb8b3ff328d76 /bragi.nix | |
parent | 45fceeb7b67389bb502268f795caa498c891b5c3 (diff) | |
download | nixos-baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa.tar nixos-baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa.tar.gz nixos-baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa.tar.bz2 nixos-baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa.tar.xz nixos-baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa.zip |
Added thermoprint-servant to bragi
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | let | 3 | let |
4 | trivmixService = opts: (pkgs.callPackage ./custom/trivmix-service.nix opts).out; | 4 | trivmixService = opts: (pkgs.callPackage ./custom/trivmix-service.nix opts).out; |
5 | thermoprint-servant = (pkgs.callPackage ./custom/thermoprint {}).thermoprint-servant; | ||
5 | in { | 6 | in { |
6 | imports = | 7 | imports = |
7 | [ | 8 | [ |
@@ -239,4 +240,21 @@ in { | |||
239 | inherit (template) shell; | 240 | inherit (template) shell; |
240 | openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; | 241 | openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; |
241 | }; | 242 | }; |
243 | |||
244 | users.extraUsers."thermoprint" = { | ||
245 | name = "thermoprint"; | ||
246 | group = "lp"; | ||
247 | isSystemUser = true; | ||
248 | createHome = true; | ||
249 | home = "/var/thermoprint"; | ||
250 | }; | ||
251 | |||
252 | systemd.services."thermoprint" = { | ||
253 | serviceConfig = { | ||
254 | Type = "simple"; | ||
255 | ExecStart = ''${thermoprint-servant}/bin/thermoprint --database /var/thermoprint/database.sqlite''; | ||
256 | User = "thermoprint"; | ||
257 | Group = "lp"; | ||
258 | }; | ||
259 | }; | ||
242 | } | 260 | } |