danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.16k stars 143 forks source link

chromium: `stylix.targets.chromium` does not exist #507

Closed Alexdelia closed 2 months ago

Alexdelia commented 2 months ago

there is no stylix.targets.chromium and by extension stylix.targets.chromium.enable to be able to enable or disable

tested on rev 5853f1a8bd072f2ebabfc3de3973084353cf6f1e

a nixos-rebuild gives:

error: The option `home-manager.users.[...].stylix.targets.chromium' does not exist.
Alexdelia commented 2 months ago

not sure to understand why?

I see the code to make it work

https://github.com/danth/stylix/blob/5853f1a8bd072f2ebabfc3de3973084353cf6f1e/modules/chromium/nixos.nix#L4

but a builtins.traceVerbose stylix do not show any chromium entry

Alexdelia commented 2 months ago

is this some kind of difference between the nixos module and the home-manager module?

if so, this issue can be closed I guess

Alexdelia commented 2 months ago

tested with nixos module and the option exist and work as expected

since home-manager does not have programs.chromium.extraOpts; which is because policies are supposed to be root/admin permissions only; it doesn't trivial to change the color theme of chromium

I close this issue