summary refs log tree commit diff
path: root/nixos/modules/services/hardware/tlp.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-07-03 23:56:41 +0400
committerGitHub <noreply@github.com>2016-07-03 23:56:41 +0400
commit00a46135630d5f45bf3eceaec5fa6d12ccbc128c (patch)
treedc09f86ebb1861b037e5186f736e37fc8c3568e4 /nixos/modules/services/hardware/tlp.nix
parent77d9966d931a0b74616f7d782060bdf33713bcda (diff)
parent1ea9d71e08f050ca58d280a841a068e927cb0009 (diff)
downloadnixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar.gz
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar.bz2
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar.lz
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar.xz
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.tar.zst
nixpkgs-00a46135630d5f45bf3eceaec5fa6d12ccbc128c.zip
Merge pull request #16681 from Aske/tlp-restart
tlp service: add restart on config change
Diffstat (limited to 'nixos/modules/services/hardware/tlp.nix')
-rw-r--r--nixos/modules/services/hardware/tlp.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/tlp.nix b/nixos/modules/services/hardware/tlp.nix
index 9230602439e..5ab7daafa85 100644
--- a/nixos/modules/services/hardware/tlp.nix
+++ b/nixos/modules/services/hardware/tlp.nix
@@ -64,6 +64,7 @@ in
         after = [ "multi-user.target" ];
         wantedBy = [ "multi-user.target" ];
         before = [ "shutdown.target" ];
+        restartTriggers = [ confFile ];
 
         serviceConfig = {
           Type = "oneshot";