From c09d68aeb4a7143aab54ff1409681f6b240eb85e Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 28 Nov 2022 10:23:23 +0100 Subject: Disable powerManagement (#160) --- modules/wsl-distro.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index a5b3181..a88b984 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -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 = { -- cgit v1.2.3