Mic92 / nixos-shell

Spawns lightweight nixos vms in a shell
MIT License
685 stars 39 forks source link

Graphical log-in not working #60

Closed Radvendii closed 1 year ago

Radvendii commented 2 years ago

I have this configuration

{ modulesPath, ... }: {
        # weird workaround https://github.com/NixOS/nixpkgs/issues/59219#issuecomment-774711048
        imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
        virtualisation.graphics = true;

        services.xserver = {
          enable = true;
          desktopManager.xfce.enable = true;
        };
};

And once I log in with root and empty password, the VM freezes. Sometimes I see the background of the login screen, and sometimes it fails to render entirely and I get my computers desktop background.

Same thing happens with gnome instead of xfce. I also tried upping virtualisation.memory to 1024.

alitibaliti commented 1 year ago

As of 2/24/23 your snippet worked perfectly fine for me.

Radvendii commented 1 year ago

Maybe this got fixed. I haven't touched this in a while, so if nobody else is experiencing it I'll just close until / unless it comes up again.