add nvidia driver & monitors

This commit is contained in:
danny 2024-12-13 22:30:05 +08:00
parent c2f85fddb8
commit 3e6847c1ef
67 changed files with 1773 additions and 101 deletions

View file

@ -9,7 +9,8 @@
];
boot.initrd.availableKernelModules = [ "vmd" "dm-raid" "xhci_pci" "thunderbolt" "nvme" "usbhid" "uas" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.initrd.kernelModules = [ ];
boot.kernelParams = [];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

View file

@ -1,9 +1,29 @@
{ config, pkgs, ... }:
{
services.xserver.videoDrivers = ["nvidia"];
hardware = {
bluetooth.enable = true;
graphics.enable = true;
nvidia.open = false;
nvidia.modesetting.enable = true;
nvidia.powerManagement.enable = true;
nvidia.powerManagement.finegrained = true;
nvidia.nvidiaSettings = true;
nvidia.dynamicBoost.enable = true;
nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
nvidia.prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
}

View file

@ -4,8 +4,10 @@
programs.hyprland = { enable = true; };
environment.systemPackages = with pkgs; [
hyprsunset
hyprshade
hyprpaper
hyprshot
kitty
libnotify
mako

View file

@ -16,4 +16,16 @@
};
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [
rime-data
fcitx5-gtk
fcitx5-rime
fcitx5-chinese-addons
];
};
}

View file

@ -2,32 +2,52 @@
{
environment.systemPackages = with pkgs; [
# Browser
firefox
opera
# Utils
bat
btop
eza
fzf
neofetch
ripgrep
tldr # Alternative for man
wget
unzip
p7zip
zip
glxinfo # OpenGL info
pciutils # PCI info
xdotool # Keyboard input simulation
# Dev
git
gnumake
lm_sensors
libsForQt5.qt5.qtquickcontrols2
libsForQt5.qt5.qtgraphicaleffects
libsForQt5.qt5.qtsvg
neofetch
neovim
ripgrep
tldr
unzip
openssl
openssl.dev
pkg-config
wget
xfce.thunar
pkg-config # Include Lib
# Editor
neovim
# Misc
xfce.thunar # File manager
# Portal
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
zip
zoxide
# Shell
zoxide # Dir jumper
nushell # Shell
starship # Shell theme
carapace # Autocomplete
];
}

View file

@ -13,5 +13,7 @@
wireplumber.enable = true;
};
environment.systemPackages = with pkgs; [ pamixer pavucontrol ];
services.playerctld.enable = true;
environment.systemPackages = with pkgs; [ pavucontrol playerctl ];
}