stylix icon indicating copy to clipboard operation
stylix copied to clipboard

Error when trying to theme KDE

Open ShadowReaper420 opened this issue 1 year ago • 3 comments

I the following error whenever I try to use the KDE module.


       error: getting status of '/nix/store/39c8m1rwg1arfmbc3pax1ml9hqc8hxk8-source/Modules/.dotfiles/Wallpapers/Kath.png': No such file or directory
┏━ 1 Errors:
┃ error:
┃        … while calling the 'head' builtin
┃
┃          at /nix/store/fpivx4sjcp2vk4rp9nhliln5cwcp3kc6-source/lib/attrsets.nix:1575:11:
┃
┃          1574|         || pred here (elemAt values 1) (head values) then
┃          1575|           head values
┃              |           ^
┃          1576|         else
┃
┃        … while evaluating the attribute 'value'
┃
┃          at /nix/store/fpivx4sjcp2vk4rp9nhliln5cwcp3kc6-source/lib/modules.nix:821:9:
┃
┃           820|     in warnDeprecation opt //
┃           821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
┃              |         ^
┃           822|         inherit (res.defsFinal') highestPrio;
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: getting status of '/nix/store/39c8m1rwg1arfmbc3pax1ml9hqc8hxk8-source/Modules/.dotfiles/Wallpapers/Kath.png': No such file or directory
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 04:41:55 after 11s
Error:
   0: Command exited with status Exited(1)

My stylix config.


{ config, pkgs, inputs, systemSettings, userSettings, ... }:
{
   stylix = {
      enable = true;
      image = ../.dotfiles/Wallpapers/Kath.png; # ignore this it wont actually be used for anything but the option is require for the time being
      base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
      autoEnable = false;
      targets = {
        kitty.enable = true;
        lazygit.enable = true;
        gtk.enable = true;
        btop.enable = true;
        kde.enable = true;


     };
   };
}

ShadowReaper420 avatar Oct 15 '24 08:10 ShadowReaper420

I the following error whenever I try to use the KDE module.

[...]
┃        error: getting status of '/nix/store/39c8m1rwg1arfmbc3pax1ml9hqc8hxk8-source/Modules/.dotfiles/Wallpapers/Kath.png': No such file or directory
[...]

My stylix config.

[...]
      image = ../.dotfiles/Wallpapers/Kath.png; # ignore this it wont actually be used for anything but the option is require for the time being
[...]

Seems like your stylix.image value is in fact used and causing the problem.

trueNAHO avatar Oct 15 '24 14:10 trueNAHO

Okay? I can read the error the problem is it doesn't make sense considering that is a real wallpaper in my config, and it builds fine if I don't use the KDE module.

ShadowReaper420 avatar Oct 15 '24 20:10 ShadowReaper420

Okay? I can read the error the problem is it doesn't make sense considering that is a real wallpaper in my config, and it builds fine if I don't use the KDE module.

I'm not very familiar with all the KDE details. Maybe @danth can help out.

trueNAHO avatar Oct 16 '24 08:10 trueNAHO

@ShadowReaper420 can you check that:

  • Modules/.dotfiles/Wallpapers/Kath.png exists within your config?
  • It is added to Git using git add? (this is required for Nix to see the file)

When you have the KDE module disabled, there is nothing which needs to access the wallpaper, so the error about it not existing won't be triggered.

danth avatar Oct 16 '24 18:10 danth

I've given up and am just using something else to theme qt stuff until this is no longer hardcoded to need a wallpaper even when you don't use it

ShadowReaper420 avatar Oct 16 '24 18:10 ShadowReaper420

same issue here

building '/nix/store/n13h1h5gpx3ga0gp64nwi04p8q8gavwr-perl-5.40.0-env.drv'...
building '/nix/store/qzyakdldbwbl3p7qdpg7x2n0vb64pvx8-stylix-kde-theme.drv'...
building '/nix/store/hbic10rxb1vh9arjrlhgi7acnq36jns5-home-configuration-reference-manpage.drv'...
building '/nix/store/7ifi65fzmgwgbwsncsdp5n1n0wdvbqln-walker-0.7.7.drv'...
building '/nix/store/z673wvhwbsai4kff196cywzy7xa9ljx7-hm-dconf.ini.drv'...
error: builder for '/nix/store/qzyakdldbwbl3p7qdpg7x2n0vb64pvx8-stylix-kde-theme.drv' failed with exit code 1;
       last 1 log lines:
       > magick: unable to open image '/etc/nixos/nixos/wallpaper.jpg': No such file or directory @ error/blob.c/OpenBlob/3596.
       For full logs, run 'nix log /nix/store/qzyakdldbwbl3p7qdpg7x2n0vb64pvx8-stylix-kde-theme.drv'.
error: 1 dependencies of derivation '/nix/store/0qsakwvvh3743b8dh8n5g5r4z4437rgx-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ga19qay9fcbcf9fxngzva0kjv5kdzhps-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ji3a1njvg284nxgskx1pwmnsynm59kbs-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pi03405241w86lm2138p4pbaszng2v4c-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j95i5fxgr3d76ak6b45jr59a9mcfav3c-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r13y14cqxxdvkdmap4g8nqi546yrngkw-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f6m2swbk0qfnpqlbd7r3i5cq9k1m6dci-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4da9wsldhl3yzzqvq04hrwblwm3ddaa0-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/isvh3cnq9g3jdrcf5d7qn8r8vvsmwdnc-nixos-system-nixoserv-24.11.20241023.2768c7d.drv' failed to build

IvanTurgenev avatar Oct 26 '24 17:10 IvanTurgenev