thermald: disable network access

Use systemd PrivateNetwork feature to prevent thermald daemon to have
network capabilities.
main
Solene Rapenne 2 years ago
parent 741f4a7769
commit f3516813d8
  1. 4
      nixos/modules/services/hardware/thermald.nix

@ -4,7 +4,8 @@ with lib;
let
cfg = config.services.thermald;
in {
in
{
###### interface
options = {
services.thermald = {
@ -41,6 +42,7 @@ in {
description = "Thermal Daemon Service";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
PrivateNetwork = true;
ExecStart = ''
${cfg.package}/sbin/thermald \
--no-daemon \

Loading…
Cancel
Save