nixos-private-dots/modules/nixos/hardware.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

57 lines
2.3 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.

# Часть настроек меняется в xserver.nix и network.nix
# Некоторые настройки под конкретное железо https://github.com/NixOS/nixos-hardware
{ pkgs, ... }: {
hardware = { # Параметры для 24.05 и unstable могут сильно отличаться
amdgpu = {
opencl.enable = true; # Enable OpenCL support using ROCM runtime library.
};
graphics = { # hardware.opengl переименован в hardware.graphics в unstable ветке
enable = true;
enable32Bit = true; # install 32-bit drivers for 32-bit applications (such as Wine).
extraPackages = with pkgs; [
libva # VAAPI (Video Acceleration API)
rocmPackages.clr.icd # OpenCL
];
};
opentabletdriver.enable = true; # Установить, настроить и добавить в автозапуск otd
keyboard.qmk.enable = true; # Еnable non-root access to the firmware of QMK keyboards.
# Список пакетов-драйверов, которые будут активированы лишь при нахождении подходящего оборудования
# firmware = with pkgs; [];
# Мало раскомментить. Надо настроить при необходимости
# fancontrol = {};
# В стоке false. Не понял зачем надо, сохранил из интереса
# enableAllFirmware = true;
# Whether to enable firmware with a license allowing redistribution.
# enableRedistributableFirmware = true;
# Разные способы управлять яркостью экрана и подсветки для юзеров в группе video
# Подробности тут https://wiki.archlinux.org/title/Backlight#Backlight_utilities
# brillo.enable = true;
# acpilight.enable = true;
};
# HIP
# Most software has the HIP libraries hard-coded. You can work around it on NixOS by using:
systemd.tmpfiles.rules = let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
];
}; in [
"L+ /opt/rocm - - - - ${rocmEnv}"
];
boot.initrd.kernelModules = [ "amdgpu" ]; # Мб не обязательно
}