Skip to content

Issue packaging theme as a flake

Hi! I'm the guy that said they would like to try packing your theme as a flake on reddit. This makes it easier for nixos users to use the theme.

Unfortunately, I've hit a roadblock. The flake builds successfully and installs the theme directory into the Nix store, but when I try to use the theme, SDDM refuses to load it and throws an error like:

SDMM Error

High-DPI autoscaling Enabled
Reading from "/nix/store/xirx04ishaq11303adysmkb6r21f8yj4-desktops/share/wayland-sessions/hyprland.desktop"
Reading from "/nix/store/xirx04ishaq11303adysmkb6r21f8yj4-desktops/share/wayland-sessions/qtile-wayland.desktop"
Reading from "/nix/store/xirx04ishaq11303adysmkb6r21f8yj4-desktops/share/xsessions/qtile.desktop"
Loading theme configuration from "./configs/default.conf"
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:./Main.qml...
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
file:///nix/store/0952jlngc4578h4pnmh5xncyvp9mk46j-SilentSDDM/share/sddm/themes/silent/Main.qml: Library import requires a version
Fallback to embedded theme

I've verified that:

  • The theme directory is complete(no missing files).
  • SDDM config is set correctly.

SDDM config

[General]
DefaultSession=
DisplayServer=x11
GreeterEnvironment=QML2_IMPORT_PATH=/run/current-system/sw/share/sddm/themes/silent/components/,QT_IM_MODULE=qtvirtualkeyboard
HaltCommand=/run/current-system/systemd/bin/systemctl poweroff
InputMethod=qtvirtualkeyboard
Numlock=none
RebootCommand=/run/current-system/systemd/bin/systemctl reboot

[Theme]
Current=silent
FacesDir=/run/current-system/sw/share/sddm/faces
ThemeDir=/run/current-system/sw/share/sddm/themes

The sddm error is pretty cryptic to me. I have no idea what it mean. I'm wondering if you know whats going on.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information