fruitbasket/modules/infoscreen.nix

30 lines
564 B
Nix
Raw Normal View History

2022-09-06 17:16:31 +02:00
{ pkgs, lib, config, ... }:
2022-04-10 13:59:39 +02:00
let
fsr-infoscreen = pkgs.fsr-infoscreen;
2022-09-06 17:16:31 +02:00
in
{
2022-04-10 13:59:39 +02:00
systemd = {
services."fsr-infoscreen" = {
enable = true;
wantedBy = [ "multi-user.target" ];
script = ''
${pkgs.python39}/bin/python39 ${fsr-infoscreen}/build/middleware/infoscreen.py
'';
serviceConfig = {
2022-09-06 17:16:31 +02:00
User = "infoscreen";
Restart = "on-failure";
2022-04-10 13:59:39 +02:00
};
};
2022-09-06 17:16:31 +02:00
};
2022-04-10 13:59:39 +02:00
2022-09-06 17:16:31 +02:00
users.users.infoscreen = {
name = "infoscreen";
description = "custom user for service infoscreen service";
isNormalUser = true;
};
2022-04-10 13:59:39 +02:00
}