Switch to sddm

This commit is contained in:
nathan mccarty 2022-07-20 23:52:18 -04:00
parent 05b8d54d5c
commit 186146ba99
1 changed files with 23 additions and 2 deletions

View File

@ -8,10 +8,16 @@ with lib;
# Turn on GDM for login # Turn on GDM for login
services.xserver = { services.xserver = {
enable = true; enable = true;
autorun = false; autorun = true;
displayManager = { displayManager = {
gdm = { sddm = {
enable = true; enable = true;
settings = {
Wayland = {
CompositorCommand = "kwin_wayland --no-lockscreen";
};
};
theme = "sugar-dark";
}; };
defaultSession = "sway"; defaultSession = "sway";
}; };
@ -40,6 +46,21 @@ with lib;
gsettings-desktop-schemas gsettings-desktop-schemas
lxappearance lxappearance
kde-gtk-config kde-gtk-config
(stdenv.mkDerivation rec {
pname = "sddm-sugar-dark-theme";
version = "1.2";
dontBuild = true;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/sugar-dark
'';
src = fetchFromGitHub {
owner = "MarianArlt";
repo = "sddm-sugar-dark";
rev = "v${version}";
sha256 = "0gx0am7vq1ywaw2rm1p015x90b75ccqxnb1sz3wy8yjl27v82yhb";
};
})
]; ];
# Enable QT themeing # Enable QT themeing
programs.qt5ct.enable = true; programs.qt5ct.enable = true;