mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
refactor: move nvidia settings to hardware/nvidia
This commit is contained in:
parent
ae62336669
commit
0eb6ac95e4
5 changed files with 13 additions and 18 deletions
|
@ -16,12 +16,12 @@ This is my personal nix config. It's still in the making, but this is what I got
|
|||
| | Name | Type | Purpose
|
||||
---|---|---|---
|
||||
💻 | nom | Gigabyte AERO 15-W8 (i7-8750H) | My laptop and my main portable development machine <sub>Framework when?</sub>
|
||||
🖥️ | potksed | PC (AMD Ryzen 9 5900X) | Main workstation and development machine
|
||||
🖥️ | ward | ODROID H3 | Energy efficient SBC for my home firewall and some lightweight services using microvms.
|
||||
🥔 | zackbiene | ODROID N2+ | ARM SBC for home automation, isolating the sketchy stuff from my main network
|
||||
☁️ | envoy | Hetzner Cloud server | Mailserver
|
||||
☁️ | sentinel | Hetzner Cloud server | Proxies and protects my local services
|
||||
|
||||
<!-- 🖥️ workstation -->
|
||||
<!-- 🖥️ home server -->
|
||||
|
||||
<sub>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||
|
||||
../../modules/optional/hardware/physical.nix
|
||||
../../modules/optional/hardware/nvidia.nix
|
||||
|
||||
../../modules
|
||||
../../modules/optional/boot-efi.nix
|
||||
|
@ -30,21 +31,7 @@
|
|||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||||
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
hardware.nvidia.powerManagement.enable = true;
|
||||
hardware.nvidia.open = false;
|
||||
hardware.nvidia.nvidiaSettings = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
killall
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
# TODO goodbye once -sk keys.
|
||||
environment.shellInit = ''
|
||||
gpg-connect-agent /bye
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
|
|
|
@ -3,4 +3,9 @@
|
|||
./fonts.nix
|
||||
./wayland.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
}
|
||||
|
|
|
@ -5,12 +5,14 @@
|
|||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaPersistenced = true;
|
||||
nvidiaSettings = true;
|
||||
open = false;
|
||||
powerManagement.enable = true;
|
||||
};
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
fd
|
||||
file
|
||||
hexyl
|
||||
killall
|
||||
ncdu
|
||||
neofetch
|
||||
rage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue