Unverified Commit 0a3b3a9d authored by Lukas Wurzinger's avatar Lukas Wurzinger
Browse files

nixos/users-groups: fix assertion

parent 4e6b4100
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -1083,14 +1083,19 @@ in
            -> !cfg.allowNoPasswordLogin
            -> any id (
              mapAttrsToList (
                name: cfg:
                (name == "root" || cfg.group == "wheel" || elem "wheel" cfg.extraGroups)
                name: user:
                (
                  name == "root"
                  || user.group == "wheel"
                  || elem "wheel" user.extraGroups
                  || elem name (cfg.groups.wheel.members or [ ])
                )
                && (
                  allowsLogin cfg.hashedPassword
                  || cfg.password != null
                  || cfg.hashedPasswordFile != null
                  || cfg.openssh.authorizedKeys.keys != [ ]
                  || cfg.openssh.authorizedKeys.keyFiles != [ ]
                  allowsLogin user.hashedPassword
                  || user.password != null
                  || user.hashedPasswordFile != null
                  || user.openssh.authorizedKeys.keys != [ ]
                  || user.openssh.authorizedKeys.keyFiles != [ ]
                )
              ) cfg.users
              ++ [