My dotfiles for NixOS. Currently using it on my laptop.
Go to file
2024-05-11 23:40:14 -05:00
config Fixed incorrect settings for battery module 2024-05-06 19:43:19 -05:00
home-manager Custom cursor attempt 4 2024-05-01 04:07:13 -05:00
nixos Add gscreenshot 2024-05-11 23:40:14 -05:00
flake.lock Initial commit, migration 2024-05-01 01:05:43 -05:00
flake.nix Initial commit, migration 2024-05-01 01:05:43 -05:00
README.md Update README.md 2024-05-01 08:55:58 -05:00
update.sh Create update script 2024-05-01 01:40:43 -05:00

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.