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

Cannot disable styling for Hyprland (Option not exist) #699

Open
Lem0nbleach opened this issue Dec 26, 2024 · 11 comments · May be fixed by #701
Open

Cannot disable styling for Hyprland (Option not exist) #699

Lem0nbleach opened this issue Dec 26, 2024 · 11 comments · May be fixed by #701

Comments

@Lem0nbleach
Copy link

error:
       … while calling the 'seq' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error: The option `stylix.targets.hyprpaper' does not exist. Definition values:
       - In `/nix/store/46zkgx3yx3l1yvc17lwqsc9ick8nk7kc-source/stylix.nix':
           {
             enable = false;
           }

This the error that I get when I try to disable Stylix's styling for Hyprland.

Something worth to mention is the reason for me to disable the styling from Stylix: Hyprland no longer has decoration:shadow:color while Stylix still automatically includes that line which produces an error.

Should I make a new issue regarding that as well?

@trueNAHO
Copy link
Collaborator

error:
       … while calling the 'seq' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error: The option `stylix.targets.hyprpaper' does not exist. Definition values:
       - In `/nix/store/46zkgx3yx3l1yvc17lwqsc9ick8nk7kc-source/stylix.nix':
           {
             enable = false;
           }

This the error that I get when I try to disable Stylix's styling for Hyprland.

This option should exist since commit f13c946. What version are your inputs (Stylix and Nixpkgs) on?

Something worth to mention is the reason for me to disable the styling from Stylix: Hyprland no longer has decoration:shadow:color while Stylix still automatically includes that line which produces an error.

Should I make a new issue regarding that as well?

Is this not already resolved by commit 5ab1207 and a duplicate of #689?

@Lem0nbleach
Copy link
Author

Lem0nbleach commented Dec 26, 2024

@trueNAHO I am incredibly sorry
I simply forgotten to reboot the system after a whole system update and thus hyprland's version was not changed.
The issue was indeed solved perfectly by 5ab1207

As for that option, I still do not have it.

This option should exist since commit f13c946. What version are your inputs (Stylix and Nixpkgs) on?

If I interpreted it correctly, Nixpkgs is on the current unstable channel and stylix is from flake, pulled straight from github.

@trueNAHO
Copy link
Collaborator

trueNAHO commented Dec 27, 2024

I am incredibly sorry I simply forgotten to reboot the system after a whole system update and thus hyprland's version was not changed. The issue was indeed solved perfectly by 5ab1207

Glad to hear you resolved it.

As for that option, I still do not have it.

This option should exist since commit f13c946. What version are your inputs (Stylix and Nixpkgs) on?

If I interpreted it correctly [...] stylix is from flake, pulled straight from github.

Does your Stylix input have commit f13c946? You could check this by comparing the commit time of this commit and the lastModified value of your Stylix input in flake.lock.

@Lem0nbleach
Copy link
Author

Lem0nbleach commented Dec 27, 2024

Does your Stylix input have commit f13c946? You could check this by comparing the commit time of this commit and the lastModified value of your Stylix input in flake.lock.

Yes I believe so, the number is 1735151068; that would be Dec 25 of this year is that right?
That was yesterday

@trueNAHO trueNAHO linked a pull request Dec 27, 2024 that will close this issue
@trueNAHO
Copy link
Collaborator

Does your Stylix input have commit f13c946? You could check this by comparing the commit time of this commit and the lastModified value of your Stylix input in flake.lock.

Yes I believe so, the number is 1735151068; that would be Dec 25 of this year is that right? That was yesterday

Correct:

$ date --date @1735151068
Wed Dec 25 07:24:28 PM CET 2024

I am unable to replicate your issue. Can you try the #701 PR?

@Lem0nbleach
Copy link
Author

Apologies for duplication, and being a complete noob even at github, thought that maybe the pull request is not the right place to ask: What should the url path be?

I couldn't figure out what the url should be in the input

@Lem0nbleach
Copy link
Author

By the help from NixOS discord I figured out how to do it now.

• Updated input 'stylix':
    'github:trueNAHO/stylix/ccca01b5b0393119822b1888cb7c68e294fc115b?narHash=sha256-Rn21YNSa4TgZzTsarghUPQv%2Bfz1dZcfdDKQZS9H79Hg%3D' (2024-02-01)
  → 'github:trueNAHO/stylix/a8ff4d169bafcfb8b207bb9cfc79b1244ed6c8ff?narHash=sha256-D5lBdmU6iJnT4%2B/IJndlB87VpBcH3zdx2pbOtz9D1zU%3D' (2024-12-27)
• Removed input 'stylix/base16-alacritty'
• Removed input 'stylix/base16-alacritty-yaml'
• Removed input 'stylix/base16-foot'
• Removed input 'stylix/base16-kitty'
• Removed input 'stylix/base16-tmux'
• Updated input 'stylix/base16-vim':
    'github:chriskempson/base16-vim/3be3cd82cd31acfcab9a41bad853d9c68d30478d?narHash=sha256-uJvaYYDMXvoo0fhBZUhN8WBXeJ87SRgof6GEK2efFT0%3D' (2022-09-20)
  → 'github:tinted-theming/base16-vim/42d6031f416c54d1a31a0dcf814b28cbc114c245?narHash=sha256-naNEXKN3FMvUPD5U2vgzL3ggAtauF4T5H%2BNIxZBaiY4%3D' (2024-12-14)
• Added input 'stylix/flake-utils':
    'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13)
• Added input 'stylix/flake-utils/systems':
    follows 'stylix/systems'
• Added input 'stylix/gnome-shell':
    'github:GNOME/gnome-shell/dadd58f630eeea41d645ee225a63f719390829dc?narHash=sha256-JhUWbcYPjHO3Xs3x9/Z9RuqXbcp5yhPluGjwsdE2GMg%3D' (2024-11-23)
• Added input 'stylix/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D' (2023-04-09)
• Added input 'stylix/tinted-foot':
    'github:tinted-theming/tinted-foot/fd1b924b6c45c3e4465e8a849e67ea82933fcbe4?narHash=sha256-%2BeDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ%3D' (2024-09-21)
• Added input 'stylix/tinted-kitty':
    'github:tinted-theming/tinted-kitty/eb39e141db14baef052893285df9f266df041ff8?narHash=sha256-2xF3sH7UIwegn%2B2gKzMpFi3pk5DlIlM18%2Bvj17Uf82U%3D' (2024-05-23)
• Added input 'stylix/tinted-tmux':
    'github:tinted-theming/tinted-tmux/20396f130e477512632c37f72590b71f59dbef88?narHash=sha256-1y/a9zKXYSq8ygmofr8UGByAehrauTH8QW8jdpYziMI%3D' (2024-12-15)
warning: Git tree '/home/lem0nbleach/.dotfiles' is dirty
error:
       … while calling the 'seq' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error: The option `stylix.targets.hyprpaper' does not exist. Definition values:
       - In `/nix/store/9bam4rx3gyvq9vwn2v8jw6vygiwhwp3i-source/stylix.nix':
           {
             enable = true;
           }

But the issue still occurs
are there other possible issues from my end instead of the repo being faulty?

@trueNAHO
Copy link
Collaborator

are there other possible issues from my end instead of the repo being faulty?

Maybe your setup is the problem, although I cannot imagine why that would be the case. Can you share your configuration or a minimal reproducible example?

@Lem0nbleach
Copy link
Author

@trueNAHO I am incredibly sorry I forgot to reply
I have my entire config in https://github.com/Lem0nbleach/nixos-config

@trueNAHO
Copy link
Collaborator

trueNAHO commented Jan 2, 2025

Is the following line the problem:

  #stylix.targets.hyprpaper.enable = true;

-- Lem0nbleach, "nixos-config/stylix.nix"

Maybe the problem stems from the fact that we only provide Home Manager modules for the Hyprland and Hyprpaper modules.

@Lem0nbleach
Copy link
Author

Is the following line the problem:

Yes that is exactly it.

Maybe the problem stems from the fact that we only provide Home Manager modules for the Hyprland and Hyprpaper modules.

Perfectly makes sense. I am afraid that I don't quite want to deal with switching to module home manager for now , a problem for the future me it is!

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 a pull request may close this issue.

2 participants