Kde/sddm: change background
This commit is contained in:
parent
f4712fdf70
commit
84fa84350a
1 changed files with 12 additions and 8 deletions
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
currentTheme = config.services.displayManager.sddm.theme;
|
||||
|
||||
sddm-sugar-candy = pkgs.stdenv.mkDerivation {
|
||||
pname = "sddm-sugar-candy";
|
||||
version = "master";
|
||||
|
|
@ -30,13 +28,18 @@
|
|||
customcfg = pkgs.stdenv.mkDerivation {
|
||||
name = "sddm-theme-customizer";
|
||||
dontUnpack = true;
|
||||
# TODO: generate theme.conf.user outside of installPhase
|
||||
installPhase = ''
|
||||
installPhase = let
|
||||
config = lib.generators.toINI {} {
|
||||
# Add the custom config here
|
||||
General = {
|
||||
background = "${pkgs.kdePackages.breeze}/share/wallpapers/Next/contents/images_dark/5120x2880.png";
|
||||
};
|
||||
};
|
||||
in ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sddm/themes/${currentTheme}/
|
||||
echo "[General]
|
||||
background = ${pkgs.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/5120x2880.png" >> $out/share/sddm/themes/${currentTheme}/theme.conf.user
|
||||
mkdir -p $out/share/sddm/themes/breeze/
|
||||
echo "${config}" >> $out/share/sddm/themes/breeze/theme.conf.user
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
|
@ -55,4 +58,5 @@ in {
|
|||
|
||||
# Sugar candy doesn't seem to work on qt6 :(
|
||||
# environment.systemPackages = [sddm-sugar-candy customcfg];
|
||||
environment.systemPackages = [customcfg];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue