Personal-use NixOS configuration
1{
2 flakeRoot,
3 nixos-hardware,
4 pkgs,
5 ...
6}:
7
8{
9 imports = [
10 nixos-hardware.nixosModules.common-pc-ssd
11 ./hardware-configuration.nix
12 ./disks.nix
13 (flakeRoot + /hardware/cpu/amd.nix)
14 (flakeRoot + /hardware/gpu/nvidia.nix)
15 (flakeRoot + /hardware/memory/oom.nix)
16 (flakeRoot + /hardware/audio/pipewire.nix)
17 (flakeRoot + /hardware/network/wifi.nix)
18 (flakeRoot + /hardware/network/bluetooth.nix)
19
20 (flakeRoot + /config/common)
21 (flakeRoot + /config/common/boot/secureboot.nix)
22
23 (flakeRoot + /config/desktop/environments/gnome.nix)
24
25 ./users
26 ];
27
28 boot.kernelPackages = pkgs.linuxPackages_latest;
29
30 hardware.nvidia.prime = {
31 amdgpuBusId = "PCI:4:0:0";
32 nvidiaBusId = "PCI:1:0:0";
33 };
34
35 system.stateVersion = "25.05";
36}