nixos-private-dots/modules/nixos/xserver.nix
Buliway a8208af95d Update system to latest unstable and Linux 6.18.2
Changes
- Update pkgs to latest unstable (2025.12.26) and spkgs to 25.05
- Fix qt5 "end of life" and use `sddm qt5`
- Fix mpv config symlink
- Fix starship config
- Rename `hardware.pulseaudio` to `services.pulseaudio`
- Use `qview` as a default image viewer
- Disable `qt` theme settings in `./shit/`. Stylix now works with Qt
- Enable `flatpak`
- Install `kubernetes`, `godot`, `ldtk`, `adb`, `throne`
- Update `neovim` to 0.11
- Delete `vscode.nix`, `imv.nix`, `git.nix`, `lynx.nix`
- Delete `mtr`, `ollama`, `pg-admin4`, `postgres-lsp`, `lynx`, `imv`, `feh`, `osu`, `gimp`
- Delete `rustup` and `driwio` cuz no binary cache
- Commented many packages
2025-12-26 07:32:51 +03:00

53 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ spkgs, ... }: {
services.displayManager = {
defaultSession = "none+bspwm"; # only effective for GDM, LightDM and SDDM
sddm = {
# Чтоб задать аватарку юзеру, надо отправить png файл такой командой:
# sudo cp image.png /var/lib/AccountsService/icons/username
# То есть именно username, без .png в конце
enable = true;
package = spkgs.libsForQt5.sddm; # qt5 sddm
theme = "chili";
};
};
services.libinput = {
enable = true;
mouse = {
accelProfile = "flat";
scrollMethod = "button";
scrollButton = 9; # Узнать айди можно через `xev -event button | grep button`
middleEmulation = false;
};
touchpad = {
accelProfile = "flat";
middleEmulation = false;
};
};
services.xserver = {
enable = true;
windowManager = {
bspwm.enable = true;
i3.enable = true; # i3-gaps доступен в стоке в новых версиях
};
xkb = {
layout = "us,ru";
variant = "";
options = "grp:caps_toggle"; # Менять язык на CapsLock
};
displayManager.sessionCommands = ''
xsetroot -cursor_name left_ptr
'';
# Мб видеодрайвер можно не указывать
# https://discourse.nixos.org/t/amd-gpu-optimal-settings/27648/3
# videoDrivers = [ "nvidia" ]; # https://nixos.wiki/wiki/Nvidia
# videoDrivers = [ "amdgpu" ]; # https://nixos.wiki/wiki/AMD_GPU
# deviceSection = ''Option "TearFree" "True"'';
};
}