Skip to content

Fix QT_STYLE_OVERRIDE conflict between illogical-flake and GNOME config - #21

Draft
sanchit-lamba with Copilot wants to merge 6 commits into
hyprlandfrom
copilot/update-flake-lock-file
Draft

Fix QT_STYLE_OVERRIDE conflict between illogical-flake and GNOME config#21
sanchit-lamba with Copilot wants to merge 6 commits into
hyprlandfrom
copilot/update-flake-lock-file

Conversation

Copilot AI commented Nov 30, 2025

Copy link
Copy Markdown
Contributor

NixOS build fails due to conflicting home.sessionVariables.QT_STYLE_OVERRIDE definitions:

  • illogical-flake module sets ""
  • home/san.nix sets "gnome"

Changes

  • Use lib.mkForce to override illogical-flake's default with user's GNOME Qt styling preference
home.sessionVariables = {
  GTK_THEME = "gruvbox-dark";
  QT_STYLE_OVERRIDE = lib.mkForce "gnome";
};

Note

illogical-impulse is designed for Hyprland; using it with GNOME desktop (desktop = "gnome") will have some env var conflicts. This fix maintains GNOME Qt styling while retaining the shell tools (fish, kitty, starship) from illogical-impulse.

Original prompt

[root@BlitzWing:/etc/nixos]# sudo nixos-rebuild test
warning: updating lock file "/etc/nixos/flake.lock":
• Added input 'illogical-flake':
'github:soymou/illogical-flake/375745b4c686126b3bb31838cdf8583b60f8da60?narHash=sha256-UMLAUVfuFnHQDOUurYuqz/EOySL1EkXbLgInospzCx4%3D' (2025-11-03)
• Added input 'illogical-flake/dotfiles':
'git+https://github.com/end-4/dots-hyprland?ref=refs/heads/main&rev=d835d8bc302159bfa9b386413ffc56a857d16755&submodules=1' (2025-10-29)
• Added input 'illogical-flake/nixpkgs':
follows 'nixpkgs'
• Added input 'illogical-flake/nur':
'github:nix-community/NUR/45040fd78c3317a6360b9fb3bbecd11304b6465b?narHash=sha256-KFwAewjWvHYhd23XQXoMtwCa06EEMpAs8Mn8khe60S4%3D' (2025-10-29)
• Added input 'illogical-flake/nur/flake-parts':
'github:hercules-ci/flake-parts/205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9?narHash=sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c%3D' (2024-12-04)
• Added input 'illogical-flake/nur/flake-parts/nixpkgs-lib':
follows 'illogical-flake/nur/nixpkgs'
• Added input 'illogical-flake/nur/nixpkgs':
follows 'illogical-flake/nixpkgs'
• Added input 'illogical-flake/quickshell':
'git+https://git.outfoxxed.me/outfoxxed/quickshell?ref=refs/heads/master&rev=1b147a2c78983877909f9e531fc8ce17c35a297a' (2025-10-28)
• Added input 'illogical-flake/quickshell/nixpkgs':
follows 'illogical-flake/nixpkgs'
building the system configuration...
evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'
error:
… while calling the 'head' builtin
at «github:nixos/nixpkgs/b3d51a0365f6695e7dd5cdf3e180604530ed33b4?narHash=sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw%3D»/lib/attrsets.nix:1696:13:
1695| if length values == 1 || pred here (elemAt values 1) (head values) then
1696| head values
| ^
1697| else

   … while evaluating the attribute 'value'
     at «github:nixos/nixpkgs/b3d51a0365f6695e7dd5cdf3e180604530ed33b4?narHash=sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw%3D»/lib/modules.nix:1118:7:
     1117|     // {
     1118|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
         |       ^
     1119|       inherit (res.defsFinal') highestPrio;

   … while evaluating the option `system.build.toplevel':

   … while evaluating definitions from `/nix/store/1wnxdqr2n1pj80lirh9pzsymslx8zd9l-source/nixos/modules/system/activation/top-level.nix':

   … while evaluating the option `warnings':

   … while evaluating definitions from `/nix/store/1wnxdqr2n1pj80lirh9pzsymslx8zd9l-source/nixos/modules/system/boot/systemd.nix':

   … while evaluating the option `systemd.services.home-manager-san.serviceConfig':

   … while evaluating definitions from `/nix/store/q9az5f308q9ffvpli022pi8n5642z36n-source/nixos':

   … while evaluating the option `home-manager.users.san.home.file.".manpath".source':

   … while evaluating definitions from `/nix/store/q9az5f308q9ffvpli022pi8n5642z36n-source/modules/files.nix':

   … while evaluating the option `home-manager.users.san.home.file.".manpath".text':

   … while evaluating definitions from `/nix/store/q9az5f308q9ffvpli022pi8n5642z36n-source/modules/programs/man.nix':

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: The option `home-manager.users.san.home.sessionVariables.QT_STYLE_OVERRIDE' has conflicting definition values:
   - In `/nix/store/q9az5f308q9ffvpli022pi8n5642z36n-source/nixos/common.nix': ""
   - In `/nix/store/pvslm3rzlkjhql97vfvqrr71h50xrabs-source/home/san.nix': "gnome"
   Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.

Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/etc/nixos#nixosConfigurations."BlitzWing".config.system.build.toplevel' --no-link' returned non-zero exit status 1.

[root@BlitzWing:/etc/nixos]#

fix the build issues that are present, also re check if there have been any missteps in implementing https://github.com/soymou/illogical-flake configs for my system


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

sanchit-lamba and others added 4 commits November 30, 2025 14:59
Co-authored-by: sanchit-lamba <121615638+sanchit-lamba@users.noreply.github.com>
…-config

Add illogical-flake for Hyprland configuration
Co-authored-by: sanchit-lamba <121615638+sanchit-lamba@users.noreply.github.com>
Copilot AI changed the title [WIP] Update flake.lock with new inputs Fix QT_STYLE_OVERRIDE conflict between illogical-flake and GNOME config Nov 30, 2025
Copilot AI requested a review from sanchit-lamba November 30, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants