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
];
config = {
services.xserver = lib.mkIf config.desktop.enable {
enable = true;
config = lib.mkIf config.desktop.enable {
services = {
displayManager = {
sddm.enable = true;
autoLogin = {
@ -20,24 +19,27 @@
};
defaultSession = "none+awesome";
};
windowManager.awesome = {
xserver = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks
vicious
];
};
libinput = {
enable = true;
# disabling mouse acceleration
mouse = {
accelProfile = "flat";
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks
vicious
];
};
libinput = {
enable = true;
# disabling touchpad acceleration
touchpad = {
accelProfile = "flat";
# disabling mouse acceleration
mouse = {
accelProfile = "flat";
};
# disabling touchpad acceleration
touchpad = {
accelProfile = "flat";
};
};
};
};