Initial switch to regreet

This commit is contained in:
Nathan McCarty 2023-06-18 18:29:37 -04:00
parent 825994465e
commit e76b9700a8
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 20 additions and 11 deletions

View File

@ -5,20 +5,25 @@ in with lib; {
# Turn on GDM for login # Turn on GDM for login
services.xserver = { services.xserver = {
enable = true; enable = true;
autorun = true; autorun = false;
displayManager = {
sddm = {
enable = true;
settings = {
Wayland = { CompositorCommand = "kwin_wayland --no-lockscreen"; };
};
theme = "sugar-dark";
};
defaultSession = "hyprland";
};
# Enable plasma for the applications # Enable plasma for the applications
desktopManager.plasma5.enable = true; desktopManager.plasma5.enable = true;
}; };
# Greetd for login
programs.regreet = {
enable = true;
settings = { GTK = { font_name = "Roboto 16"; }; };
package = pkgs.greetd.regreet.overrideAttrs (old: {
preBuild = ''
export SESSION_DIRS=/run/current-system/sw/share/xsessions:/run/current-system/sw/share/wayland-sessions
echo SESSION_DIRS=$SESSION_DIRS
'';
});
};
services.greetd = {
enable = true;
settings = { default_session.command = "cage -s -- regreet"; };
};
# Setup drivers # Setup drivers
hardware.opengl = { hardware.opengl = {
# Enable vulkan # Enable vulkan
@ -28,6 +33,10 @@ in with lib; {
}; };
# Basic packages that are effectively required for a graphical system # Basic packages that are effectively required for a graphical system
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Greeter packages
cage
config.programs.regreet.package
gnome.adwaita-icon-theme
# GTK Theming # GTK Theming
gtk-engine-murrine gtk-engine-murrine
gtk_engines gtk_engines