Sddm: create derivation containing custom theme
This commit is contained in:
parent
d6eff86646
commit
0dc2b2980b
1 changed files with 23 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue