diff options
| author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-28 10:23:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-28 10:23:23 +0100 |
| commit | c09d68aeb4a7143aab54ff1409681f6b240eb85e (patch) | |
| tree | bde5c6a1b2d1e46c8747dc4eb867114da7232650 /modules | |
| parent | de5dd8238b591f2d39198ad036b85642bf828a29 (diff) | |
Disable powerManagement (#160)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/wsl-distro.nix | 2 |
1 files changed, 2 insertions, 0 deletions
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 = { |
