common/sddm: init

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-04 23:02:08 +01:00
parent f0a869d49b
commit a1f48392ed
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 29 additions and 3 deletions

View File

@ -1,5 +1,25 @@
{ config, lib, ... }: { config, pkgs, lib, ... }:
{ {
services.displayManager = lib.mkIf (!config.machineVars.headless) {
enable = true;
defaultSession = "none+xmonad";
sddm = {
enable = true;
# wayland.enable = true;
package = pkgs.kdePackages.sddm;
theme = "sddm-astronaut-theme";
# extraPackages = [ pkgs.sddm-astronaut ];
};
};
environment.systemPackages = [
(pkgs.sddm-astronaut.override {
themeConfig = {
PartialBlur = false;
# Background = "Backgrounds/";
};
})
];
services.xserver = lib.mkIf (!config.machineVars.headless) { services.xserver = lib.mkIf (!config.machineVars.headless) {
enable = true; enable = true;
@ -13,8 +33,8 @@
xfce.enable = true; xfce.enable = true;
}; };
displayManager.lightdm.enable = true; # displayManager.lightdm.enable = true;
displayManager.defaultSession = "none+xmonad"; # displayManager.defaultSession = "none+xmonad";
windowManager.xmonad = { windowManager.xmonad = {
enable = true; enable = true;

View File

@ -65,6 +65,12 @@
services = { services = {
xserver.upscaleDefaultCursor = true; xserver.upscaleDefaultCursor = true;
xserver.dpi = 192; xserver.dpi = 192;
displayManager.sddm = {
enableHidpi = true;
settings = {
X11.ServerArguments = "-nolisten tcp -dpi 192";
};
};
libinput.touchpad.accelSpeed = "0.5"; libinput.touchpad.accelSpeed = "0.5";
}; };