Skip to content

Commit

Permalink
nvpmodel: restart on-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Princemachiavelli authored and danielfullmer committed Apr 4, 2024
1 parent 5d99c74 commit 99ff19f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/nvpmodel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ in
description = "Set NVPModel power profile";
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
RestartSec = "2s";
ExecStart = "${pkgs.nvidia-jetpack.l4t-nvpmodel}/bin/nvpmodel -f ${cfg.configFile}" + lib.optionalString (cfg.profileNumber != null) " -m ${builtins.toString cfg.profileNumber}";
};
wantedBy = [ "multi-user.target" ];
Expand Down

0 comments on commit 99ff19f

Please sign in to comment.