Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7c23e16b6569
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6f95aa4b55c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 20, 2021

  1. wakeonlan service: use powerUpCommands

    powerDownCommands is supposed to run before shutdown, but the current
    implementation only runs before-sleep, thus not enabling wakeonlan on
    devices when powering off even if the hardware supports it.
    
    Taking into consideration the possibility of unexpected shutdown, it is
    preferable to move the commands to powerUpCommands instead which is
    executed at boot time as well as after resume - that should cover all
    use cases for wakeonlan.
    
    Fixes #91352
    
    (cherry picked from commit f462cf1)
    martinetd authored and rnhmjoj committed Apr 20, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    rnhmjoj Michele Guerini Rocco
    Copy the full SHA
    d6f95aa View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 nixos/modules/services/networking/wakeonlan.nix
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/wakeonlan.nix
Original file line number Diff line number Diff line change
@@ -51,6 +51,6 @@ in

###### implementation

config.powerManagement.powerDownCommands = lines;
config.powerManagement.powerUpCommands = lines;

}