From 0dc2b2980b7daa03f10ba78fff9a1ec69bc1954d Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 29 Jun 2023 12:57:40 +0200 Subject: [PATCH] Sddm: create derivation containing custom theme --- roles/kde/sddm.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/roles/kde/sddm.nix b/roles/kde/sddm.nix index b290390..1c6e689 100644 --- a/roles/kde/sddm.nix +++ b/roles/kde/sddm.nix @@ -1,15 +1,36 @@ -{ config, ... }: +{ config, pkgs, ... }: + +let + sddm-sugar-candy = pkgs.stdenv.mkDerivation { + pname = "sddm-sugar-candy"; + version = "master"; + src = pkgs.fetchgit { + url = "https://framagit.org/MarianArlt/sddm-sugar-candy.git"; + hash = "sha256-XggFVsEXLYklrfy1ElkIp9fkTw4wvXbyVkaVCZq4ZLU="; + }; + installPhase = '' + runHook preInstall + + mkdir -p $out/share/sddm/themes/sugar-candy + cp -r /build/sddm-sugar-candy/* $out/share/sddm/themes/sugar-candy + + runHook postInstall + ''; + }; + +in { # Enable SDDM. services.xserver.displayManager.sddm = { enable = true; + theme = "sugar-candy"; settings = { General = { Numlock = "on"; }; }; }; - + environment.systemPackages = [ sddm-sugar-candy ]; /* Sddm has a very annoying bug where it sometimes hangs at shutdown if you use Plasma's wayland session. The bug is already fixed upstream,