Comments (9)
I usually use nixos-rebuild
: sudo nixos-rebuild --flake .#captain-easychord build
from stylix.
do you think it would be possible to theme gnome without it ?
Once logged in, yes, but I couldn't find any other way to theme GDM as it doesn't load extensions.
from stylix.
I'm trying to reproduce your problem, how should I build your config ? I've tried a nix flake show
but I get an error when evaluatiing checks.
from stylix.
Ok so after some experimentation, there are two things that both cause infinite recursion, but I don't yet know why:
In(that one actually works)stylix/nixos/palette.nix
, settingstylix/palette.html
- In
modules/gnome/nixos.nix
, setting the overlay
from stylix.
In modules/gnome/nixos.nix
, even setting nixpkgs.overlays
to []
cause the infinite recursion, but setting it from stylix/nixos/default.nix
does not cause any trouble. So it might be something linked to the interaction of nixpkgs.overlays
and mkIf
. However, I didn't encounter this problem on my config, it probably is linked to something digga
is doing.
from stylix.
Ok so my hypothesis is that digga
use the value of nixpkgs.overlays
and nixpkgs.pkgs
to build the lib
argument it gives to the modules (I don't have the time right now to dive into the implementation details of digga
to make sure of that). That means that anything using lib
needs first to evaluate config.nixpkgs.overlays
, which in our case need to evaluate lib.mkIf
, creating the infinite recursion.
That would explain why I haven't encountered this bug, since my lib
argument comes from outside the module system.
I am not sure how to fix it however, I would have to think a bit more about it.
from stylix.
I confirmed that if the mkIf
comes from outside, there is no more infinite recursion, but I'm not sure how to do that properly.
Maybe it would be best if we simply avoided setting nixpkgs.overlays
, since anyway the user may discard it by passing pkgs
as an argument to nixosSystem
. @danth do you think it would be possible to theme gnome without it ?
from stylix.
Thank you so much for digging through this! Would opening an issue on the digga repository help?
from stylix.
Maybe that's the best thing to do indeed. I will create a FAQ here in case someone else encounters the same problems, because it is not specific to digga.
from stylix.
Related Issues (20)
- module template in docs HOT 1
- grub: only change colors, not override the default nixos theme
- stylix: support slideshows and animated wallpapers HOT 21
- application opacity HOT 8
- Broken with `nix-darwin` HOT 4
- Evaluation fails with home-manager 22.11, and cannot disable mako target HOT 3
- Standard window border colour HOT 8
- Add support for SDDM HOT 6
- Waybar style is unreadable with ayu-dark HOT 6
- Readme Show and Tell HOT 3
- Helix hooks
- GRUB not getting colored correctly HOT 3
- RGB Conversion Functions HOT 1
- fonts.drv causing link errors HOT 7
- Gnome Extensions App DOes Not launch HOT 1
- stylix nixos module assumming home-manager useage in nixos HOT 6
- Tmux support HOT 2
- emacs: add support for doom variant HOT 3
- Breaks `documentation.nixos.includeAllModules`
- pyWal support and terminal coloring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylix.