# Vscode can't be launched after installation

**URL:** https://discourse.nixos.org/t/vscode-cant-be-launched-after-installation/25311
**Category:** Help
**Created:** [February 8, 2023, 12:16pm UTC](https://discourse.nixos.org/t/vscode-cant-be-launched-after-installation/25311 "2023-02-08T12:16:43Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![dbsxdbsx](https://discourse.nixos.org/user_avatar/discourse.nixos.org/dbsxdbsx/32/8504_2.png) [@dbsxdbsx](https://discourse.nixos.org/u/dbsxdbsx)
#### Post date: [February 9, 2023, 10:41am UTC](https://discourse.nixos.org/t/vscode-cant-be-launched-after-installation/25311/11 "2023-02-09T10:41:59Z")

</div>

I hope so. So I add something like this:

```nix
users.users.dong = {
isSystemUser = true;
# isNormalUser = false;
    extraGroups = ["wheel" "networkmanager"]; # Enable ‘sudo’ for the user.
  };
security.sudo.wheelNeedsPassword = false;
        security.sudo.configFile = ''
                        dong ALL=(ALL) NOPASSWD: ALL
            '';
users.users.dong.group = "dong";
       users.groups.dong = {};

```

But still, when restart after `nixos-rebuild switch && reboot`, I am stopped by the login UI, if input nothing and press ENTER directly, it would tell me I have the wrong password number.  
I’ve also tried to use `isNormalUser = true;`, but nothing changed.

(Actually, I’ve tried to install NIXOS without setting root password by `nixos-install --no-root-passwd`, then I can’t login anylonger, so I have to reinstall system with a root password.)

**referece**

> <https://unix.stackexchange.com/questions/377362/in-nixos-how-to-add-a-user-to-the-sudoers-file>

> [@Don't prompt a user for the sudo password](https://discourse.nixos.org/t/dont-prompt-a-user-for-the-sudo-password/9163):
>
> I have this user: users.users.myusername = { isNormalUser = true; extraGroups = ["wheel" "networkmanager"]; # Enable ‘sudo’ for the user. }; but I still have to type in my password the first time I use sudo as that user. How do I disable prompting for the sudo password?

---

_[View the full topic](https://discourse.nixos.org/t/vscode-cant-be-launched-after-installation/25311)._
