better defaults

This commit is contained in:
2025-05-25 02:22:42 +03:00
parent 5b686e38c4
commit 50233bb6e7
6 changed files with 154 additions and 61 deletions

21
service.nix Normal file
View File

@@ -0,0 +1,21 @@
{ 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";
};
};
}