rpi-fan-control/service.nix
2025-05-25 22:03:00 +03:00

21 lines
459 B
Nix

{ config, pkgs, ... }:
let
rpi-fan-control-pkg = pkgs.callPackage ./default.nix { };
in
{
systemd.services.rpi-fan-control = {
description = "Raspberry Pi Fan Control Service";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${rpi-fan-control-pkg}/bin/rpi-fan-control";
User = "root";
Group = "root";
Restart = "on-failure";
RestartSec = "5s";
};
};
}