fix displayManager deprecation

This commit is contained in:
Patrick Neff 2024-04-14 15:48:04 +02:00
parent 54b5e8f785
commit 6d7dfe8ddd
1 changed files with 20 additions and 18 deletions

View File

@ -9,9 +9,8 @@
./i18n.nix ./i18n.nix
]; ];
config = { config = lib.mkIf config.desktop.enable {
services.xserver = lib.mkIf config.desktop.enable { services = {
enable = true;
displayManager = { displayManager = {
sddm.enable = true; sddm.enable = true;
autoLogin = { autoLogin = {
@ -20,24 +19,27 @@
}; };
defaultSession = "none+awesome"; defaultSession = "none+awesome";
}; };
windowManager.awesome = { xserver = {
enable = true; enable = true;
luaModules = with pkgs.luaPackages; [ windowManager.awesome = {
luarocks enable = true;
vicious luaModules = with pkgs.luaPackages; [
]; luarocks
}; vicious
libinput = { ];
enable = true;
# disabling mouse acceleration
mouse = {
accelProfile = "flat";
}; };
libinput = {
enable = true;
# disabling touchpad acceleration # disabling mouse acceleration
touchpad = { mouse = {
accelProfile = "flat"; accelProfile = "flat";
};
# disabling touchpad acceleration
touchpad = {
accelProfile = "flat";
};
}; };
}; };
}; };