Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system freezes when i log in on gdm with the gnome target enabled #791

Open
paaradiso opened this issue Jan 23, 2025 · 6 comments
Open

system freezes when i log in on gdm with the gnome target enabled #791

paaradiso opened this issue Jan 23, 2025 · 6 comments
Labels
bug Something isn't working properly

Comments

@paaradiso
Copy link

paaradiso commented Jan 23, 2025

nixpkgs version is 24.11, i am configuring stylix in my configuration.nix.

with stylix.targets.gnome.enable = true, when i log in as my user on gdm, all i can see is my cursor. i can't move it, and i can't change tty. i can log in as root.

i can't find anything relevant in the journal and /var/log/gdm is empty.

configuration.nix:

  stylix = {
    enable = true;
    polarity = "dark";
    image = ../../assets/161616.jpg;
    base16Scheme = "${pkgs.base16-schemes}/share/themes/oxocarbon-dark.yaml";
    targets = {
      # gnome.enable = false;
    };
    cursor = {
      package = pkgs.phinger-cursors;
      name = "phinger-cursors-dark";
    };
    fonts = {
      monospace = {
        package = pkgs.iosevka-comfy.comfy-motion-fixed;
        name = "Iosevka Comfy Motion Fixed";
      };
      sansSerif = {
        package = pkgs.cantarell-fonts;
        name = "Cantarell";
      };
      sizes = {
        terminal = 10;
      };
    };
  };```
@trueNAHO
Copy link
Collaborator

nixpkgs version is 24.11, i am configuring stylix in my configuration.nix.

I assume you are also following stylix/release-24.11. Since when do you have this problem? Since the stylix/release-24.11 branch-off the GNOME directory has only been touched twice:

$ git log master..release-24.11 modules/gnome                                                                                      6.6s
commit 8cdd9f07259d63635920775740b3a349e62e56ca
Author: Devin <[email protected]>
Date:   2024-12-18 09:15:36 -0500

    treewide: extend stylix.imageScalingMode support

    Add stylix.imageScalingMode support to all modules except:

    - hyprlock
    - hyprpaper
    - kde
    - lightdm
    - sway

    Closes: https://github.com/danth/stylix/issues/677
    Link: https://github.com/danth/stylix/pull/678

    Reviewed-by: NAHO <[email protected]>
    Reviewed-by: Daniel Thwaites <[email protected]>
    (cherry picked from commit a2d66f25478103ac9b4adc6d6713794f7005221e)

commit f05a3c0e89fd51668190fa0e3e41c4ad0ffe388c
Author: Daniel Thwaites <[email protected]>
Date:   2024-12-03 21:46:45 +0000

    gnome: update to GNOME 47.2 (#658)

    Closes: https://github.com/danth/stylix/issues/618
    Link: https://github.com/danth/stylix/pull/658

    Approved-by: NAHO <[email protected]>
    (cherry picked from commit ffba1f1bab63ea49541f812c72a4fcf305461d67)

The inputs have also been changed twice:

$ git log master..release-24.11 flake.lock
commit 8dd098840ed79f14d6e3d8054c300415f20746f7
Author: NAHO <[email protected]>
Date:   2024-12-10 19:40:15 +0100

    stylix: lock nixpkgs and home-manager to 24.11 (#671)

commit f05a3c0e89fd51668190fa0e3e41c4ad0ffe388c
Author: Daniel Thwaites <[email protected]>
Date:   2024-12-03 21:46:45 +0000

    gnome: update to GNOME 47.2 (#658)

    Closes: https://github.com/danth/stylix/issues/618
    Link: https://github.com/danth/stylix/pull/658

    Approved-by: NAHO <[email protected]>
    (cherry picked from commit ffba1f1bab63ea49541f812c72a4fcf305461d67)

@paaradiso
Copy link
Author

i only installed stylix two days ago. since it only freezes when i log in as my user, maybe my home-manager file will help:

{ config, pkgs, lib, ... }:

{
  programs.home-manager.enable = true;

  home.homeDirectory = "/home/alpha";

  home.stateVersion = "24.05"; # Please read the comment before changing.

  home.packages = with pkgs; [
    gnomeExtensions.blur-my-shell
    gnomeExtensions.caffeine
    gnomeExtensions.clipboard-indicator
    gnomeExtensions.hot-edge
    gnomeExtensions.just-perfection
    gnomeExtensions.rounded-window-corners-reborn
  ];

  home.sessionVariables = {
    EDITOR = "vim";
  };

  dconf = {
    enable = true;
    settings = {
      "org/gnome/shell" = {
        disable-user-extensions = false;
        # `gnome-extensions list` for a list of installed extensions
        enabled-extensions = [
          "blur-my-shell@aunetx"
          "[email protected]"
          "[email protected]"
          "[email protected]"
          "just-perfection-desktop@just-perfection"
          "rounded-window-corners-reborn@fxgn"
        ];
      };
      "org/gnome/shell/extensions/just-perfection" = {
        keyboard-layout = false;
        quick-settings-dark-mode = false;
        screen-sharing-indicator = false;
        window-demands-attention-focus = true;
        switcher-popup-delay = false;
      };
      "org/gnome/desktop/interface" = {
	# monospace-font-name = "Iosevka Comfy Motion Fixed 11";
        # cursor-theme = "phinger-cursors-dark";
        show-battery-percentage = true;
      };
      "org/gnome/desktop/peripherals/touchpad" = {
        natural-scroll = false;
      };
    };
  };


  programs = {
    git = {
      enable = true;
      userName = "paaradiso";
      userEmail = "";
    };
    ssh = {
      enable = true;
      addKeysToAgent = "yes";
    };
    zsh = {
      enable = true;
      enableCompletion = true;
      shellAliases = {
        ls = "eza -la";
        cd = "z";
      };
      initExtra = ''
        autoload -Uz vcs_info
        precmd() { vcs_info }
	zstyle ':vcs_info:git:*' formats '%b '
	setopt PROMPT_SUBST
	PROMPT='%F{blue}%~%f %F{red}''${vcs_info_msg_0_}%f$ '
      '';
    };
    zoxide = {
      enable = true;
      enableZshIntegration = true;
    };
  };
}

@trueNAHO
Copy link
Collaborator

Just to clarify:

  • Are you using NixOS or Home Manager?
  • What is your Stylix input? Is it: inputs.stylix.url = "github:danth/stylix/release-24.11";?

Maybe your custom GNOME setup is for some reason incompatible with our Stylix setup.

Do you still have the problem when you remove all your GNOME configurations and merely enable Stylix with its GNOME support? If not, try finding what exactly is causing the problem. Otherwise, consider taking a quick look at our GNOME implementation to see if there is anything that you know might be incompatible with your setup.

Also, for good measure, do you have the same issue when running our VM test:

nix run github:danth/stylix/e594886eb0951a0a0c28ffa333a9df6fb13857a1#testbed-gnome-dark

Ignore the weird artifacts and flickering. They are caused by the VM itself...

@danth
Copy link
Owner

danth commented Jan 24, 2025

I wonder if one of your extensions might be causing this - could you try it with extensions disabled?

@trueNAHO trueNAHO added the bug Something isn't working properly label Jan 24, 2025
@paaradiso
Copy link
Author

paaradiso commented Jan 24, 2025

i am using nixos and my stylix input is release-24.11. i disabled all of my extensions then enabled them one by one. the "just perfection" extension was causing it. i tried removing my just perfection dconf settings, but it still froze. what logs would help figure out why this is happening?

@danth
Copy link
Owner

danth commented Jan 25, 2025

It looks like Just Perfection makes a lot of modifications to the theme. It's likely that this is conflicting with some of Stylix's modifications, and the extension is crashing rather than handling the situation gracefully.

journalctl -e might be helpful, but otherwise I'm not sure where you can look to debug this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

3 participants