fix(login): fork SDDM theme to add Qt6 support

This commit is contained in:
Kiana Sheibani 2026-02-12 00:02:27 -05:00
parent fff22e6cb4
commit ef73597b39
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 21 additions and 20 deletions

View file

@ -1,28 +1,31 @@
{ config, lib, pkgs, tokyo-night-sddm-src, ... }: { config, lib, pkgs, tokyo-night-sddm-src, ... }:
let let
tokyo-night-sddm = pkgs.stdenv.mkDerivation { tokyo-night-sddm = pkgs.stdenvNoCC.mkDerivation {
name = "tokyo-night-sddm"; name = "tokyo-night-sddm";
src = tokyo-night-sddm-src; src = tokyo-night-sddm-src;
dontWrapQtApps = true;
buildInputs = with pkgs.qt6Packages; [
qtbase
qtsvg
];
installPhase = '' installPhase = ''
cp -f ${./tokyo-night-sddm/theme.conf} ./theme.conf cp -f ${./sddm/theme.conf} ./theme.conf
cp -f ${../assets/background/bg_lock.png} Backgrounds/background.png cp -f ${../assets/background/bg_lock.png} Backgrounds/background.png
mkdir -p $out/share/sddm/themes/tokyo-night-sddm mkdir -p $out/share/sddm/themes/tokyo-night
mv * $out/share/sddm/themes/tokyo-night-sddm mv * $out/share/sddm/themes/tokyo-night
''; '';
}; };
in lib.mkIf (config.machine != "air") { in lib.mkIf (config.machine != "air") {
environment.systemPackages = with pkgs.libsForQt5; [ environment.systemPackages = [
tokyo-night-sddm # Theme tokyo-night-sddm # Theme
qtbase
qtsvg
qtquickcontrols2
qtgraphicaleffects
]; ];
services.displayManager.defaultSession = "hyprland"; services.displayManager.defaultSession = "hyprland";
services.displayManager.sddm = { services.displayManager.sddm = {
enable = true; enable = true;
wayland.enable = true; wayland.enable = true;
theme = "tokyo-night-sddm"; theme = "${tokyo-night-sddm}/share/sddm/themes/tokyo-night";
}; };
} }

16
flake.lock generated
View file

@ -169,17 +169,15 @@
"tokyo-night-sddm-src": { "tokyo-night-sddm-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1686823900, "lastModified": 1770872200,
"narHash": "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=", "narHash": "sha256-6U2cC7e3NtxDHm+6rTC+/JIL9afMldxp0SYitOnx84s=",
"owner": "rototrash", "rev": "2d21c0fb19ab4232f2e42847f96f95cffcd7cec0",
"repo": "tokyo-night-sddm", "type": "tarball",
"rev": "320c8e74ade1e94f640708eee0b9a75a395697c6", "url": "https://git.tokinanpa.dev/api/v1/repos/toki/tokyo-night-sddm/archive/2d21c0fb19ab4232f2e42847f96f95cffcd7cec0.tar.gz"
"type": "github"
}, },
"original": { "original": {
"owner": "rototrash", "type": "tarball",
"repo": "tokyo-night-sddm", "url": "https://git.tokinanpa.dev/toki/tokyo-night-sddm/archive/main.tar.gz"
"type": "github"
} }
} }
}, },

View file

@ -19,7 +19,7 @@ inputs = {
quickshell-toki-night.inputs.nixpkgs.follows = "nixpkgs"; quickshell-toki-night.inputs.nixpkgs.follows = "nixpkgs";
quickshell-toki-night.inputs.systems.url = "github:nix-systems/x86_64-linux"; quickshell-toki-night.inputs.systems.url = "github:nix-systems/x86_64-linux";
tokyo-night-sddm-src.url = "github:rototrash/tokyo-night-sddm"; tokyo-night-sddm-src.url = "https://git.tokinanpa.dev/toki/tokyo-night-sddm/archive/main.tar.gz";
tokyo-night-sddm-src.flake = false; tokyo-night-sddm-src.flake = false;
macos-hyprcursor-src.url = "github:driedpampas/macOS-hyprcursor"; macos-hyprcursor-src.url = "github:driedpampas/macOS-hyprcursor";
macos-hyprcursor-src.flake = false; macos-hyprcursor-src.flake = false;