Skip to content

Commit

Permalink
Disable powerManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 28, 2022
1 parent de5dd82 commit 4501dfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ with lib; {
# Otherwise WSL fails to login as root with "initgroups failed 5"
users.users.root.extraGroups = [ "root" ];

powerManagement.enable = false;

security.sudo.wheelNeedsPassword = mkDefault false; # The default user will not have a password by default

system.activationScripts = {
Expand Down

0 comments on commit 4501dfb

Please sign in to comment.