config | ||
home-manager | ||
nixos | ||
flake.lock | ||
flake.nix | ||
README.md | ||
update.sh |
Lynn's NixOS dotfiles
Most of the dotfiles here are from my desktop, albeit a bit modified (Polybar config, for example). I'm using home-manager
to deploy my older config files to ~/.config
, naturally. I do plan on adapting them using NixOS's abstraction tools at some point, but this is a good stop-gap for now.
Some Assembly Required
Because I'm a noob at NixOS (and because I'm lazy and wanted to get it working first), this configuration makes some assumptions. They are in-line with my laptop, which is an ASUS TUF A15 (FA506IV).
GPU
- It assumes you have an AMD APU, with an NVIDIA dGPU
- Furthermore, it assumes the APU's GPU is at PCI:0:6:0 and that the NVIDIA dGPU is at PCI:1:0:0
- This uses the Sync mode described on the wiki.
It wouldn't be too hard to modify the configuration file to make this work on YOUR system.
Intel iGPU + NVIDIA dGPU
Simply change amdgpuBusId
to intelBusId
. You'll still need to change the bus addresses themselves, though. Read the wiki for more information!
NVIDIA GPU ONLY
Remove or comment out the prime
section.
AMD GPU (APU OR dGPU) ONLY
Remove or comment out the entire nvidia
section, as well as services.xserver.videoDrivers = ["nvidia"];
above it.
hardware-configuration.nix
As with any other NixOS configuration, be sure you replace the nixos/hardware-configuration.nix
file with one generated for your computer.