Help installing NixOS using config from GitHub repo (newbie)


Hi! I’m new to NixOS and really want to set up my system using a pre-made configuration, but I’m a bit confused.

I found this repository with configs:
:link: https://github.com/librephoenix/nixos-config

I want to use this config to install NixOS, but I’m not sure where to start or how to properly apply it. I also need to install NVIDIA drivers (my GPU is an RTX 4060), and it looks like the config has something related to that — but I’m not sure if it’s set up correctly for my system.

My system specs:

  • GPU: NVIDIA RTX 4060
  • CPU: AMD Ryzen 5 5600

I’d really appreciate if someone could:

  1. Explain how to properly use the config from this repository for installation.
  2. Help me edit the config for my specific hardware, if needed.
  3. Make sure NVIDIA drivers are set up correctly, or help me do that.

I can provide output from lspci, nix-info, etc., if needed.

Thank you so much in advance :pray:

error

warning: Git tree '/home/yakatze/nixos-config' is dirty
building the system configuration...
warning: Git tree '/home/yakatze/nixos-config' is dirty
warning: error: unable to download 'https://cache.nixos.org/nar/00qqq9km18qcqv016561ms0kpnsrwpw2xy9x1vnpdffndsa03nzd.nar.xz': HTTP error 200 (curl error: Failure when receiving data from the peer); retrying from offset 11919891 in 313 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1k8hizbxwwcy2wvgbpsd2cpacjf7c5sssc8pna2pjiq7cs0saac3.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 5801152 in 252 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1k8hizbxwwcy2wvgbpsd2cpacjf7c5sssc8pna2pjiq7cs0saac3.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 5878695 in 310 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1k8hizbxwwcy2wvgbpsd2cpacjf7c5sssc8pna2pjiq7cs0saac3.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 5709120 in 304 ms
warning: error: unable to download 'https://cache.nixos.org/nar/199xrbd3345w6mv65a7m8fa2d7ypdzjilmbbgrqjy32xxdxfxhbs.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 2621440 in 296 ms
warning: error: unable to download 'https://cache.nixos.org/nar/03q0yh9rjxdhj8q62v94v3nknvxv19nd35b889ngqcbxz15zipm0.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 1303266 in 278 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1msxk26zf7yfi7hgjfc94mlsks0928kqvh88r3vsai48wylcsl0l.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 991988 in 331 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0bb3wzkadxk85r4wcgifz6cnv5rhyi5r473nmzaj0wv07x3r80sn.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 802123 in 264 ms
warning: error: unable to download 'https://cache.nixos.org/nar/09npn8xzhy5zj7wcjcxax3zp8k82jq6x02d95cnxb6imixvmn8gp.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 773557 in 267 ms
warning: error: unable to download 'https://cache.nixos.org/nar/10r2b96nkkbs42hsxpl9y0qi8mz5c3mpbgv1hrp0xbmy5x8mib3c.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 540672 in 336 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0z3zvh66gjymw1h7a92kh690ph8s2x275nm5mp1dgqc4dhf7n7w5.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 393216 in 332 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1mgp4nb444niq0kpkgpmp7p6xcbaqhwmm47nvsk9wrb37v8fy3aq.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 180224 in 281 ms
warning: error: unable to download 'https://cache.nixos.org/nar/11xsmvv9wm7dbyigd1w1kr0h9ara39g2g7610s1yb8gvp3czk9kb.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 196608 in 328 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0q6rahd85l49yfw7q8ss6gphaiqfnb2ivkyv5ccrgwpbl9nb7dgv.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 147456 in 255 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0niffhvpk80hq2g7fdak6sxpyj7i1j91hdxqqf6dazk459pjkdwi.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 98196 in 322 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1iz8hzizr559f3znp6g08jdq49v90s3zwdrfqlfpxyqhb5il47x6.nar.xz': HTTP error 200 (curl error: Failed sending data to the peer); retrying from offset 12591506 in 329 ms
warning: error: unable to download 'https://cache.nixos.org/nar/114apv1pj04h94lkilz1gc2xyj1h40fwr6p9mfy3bn7gidg127w3.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 6218150 in 269 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0wi0b2jk6n1sghsnws7r2v4c1dc854a6y6k183c1wdk8v52cr88s.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 20855421 in 277 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0zsnxw4pacl54hnwnjwkvsqqbzd3kr23b7cpfc2wbxsa7mdphcj4.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 20001964 in 291 ms
warning: error: unable to download 'https://cache.nixos.org/nar/02g46jykp6mygggvb6aas12znz774drmbf6qdnlh9n8ly33y25cv.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 19905228 in 292 ms
warning: error: unable to download 'https://cache.nixos.org/nar/10kgf3l6n15lx32hgcynnij28whnjifafa0v0xzkpwzrkswfpg2n.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 16967777 in 329 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1a3nzgs95q123dlkilk9kr5g4j5jklgy4w6vcpf3ns7cw7sjj0xs.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 6217705 in 298 ms
warning: error: unable to download 'https://cache.nixos.org/nar/080iqq3mwckkmrxh74hbq9d41f3f4w7ik3m8502m4hilax19lg6l.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 5758260 in 304 ms
warning: error: unable to download 'https://cache.nixos.org/nar/14zkxg0wpdwim4ars2y7x3nxn2vm7bvqv8zdrcqa6rzzch5ch8kn.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 2242864 in 333 ms
warning: error: unable to download 'https://cache.nixos.org/nar/15yc2xnh2c69x3bzr7kj25a41nha2810gzmn1a8ha97rln1q0l6k.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 1866621 in 344 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1mbvqni9m5s89ghmwvfwfqip9f9s4ycvjs4li603ig9s42nk92s3.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 566004 in 275 ms
warning: error: unable to download 'https://cache.nixos.org/nar/174858ssiv9axabddcbplyqad4rl1ba097nnlqlfalqij8qp91f6.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 287476 in 288 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1azjrv87p2vnajnfjhlwicb701lhd2sp3fqqbafiaikbv2q6pmxc.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 262144 in 283 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1sb6xmd6q9glqm2dv9mggkjckmwy0pxgxq4fa0dg4pw5lg0k45sk.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 263025 in 329 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1iz8hzizr559f3znp6g08jdq49v90s3zwdrfqlfpxyqhb5il47x6.nar.xz': HTTP error 206 (curl error: Timeout was reached); retrying from offset 49324788 in 501 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1zqsrysf0vwwg7i536rzr0khm76rfrdrnwicnlcrcdklpgyglkmi.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 17206207 in 293 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0l0nfg451barzv3kv5f37hbw13ka2fvmxxdvbjjpkjyx0ywsz54w.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 7307264 in 347 ms
warning: error: unable to download 'https://cache.nixos.org/nar/114apv1pj04h94lkilz1gc2xyj1h40fwr6p9mfy3bn7gidg127w3.nar.xz': Timeout was reached (28); retrying from offset 6218150 in 603 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1mbvqni9m5s89ghmwvfwfqip9f9s4ycvjs4li603ig9s42nk92s3.nar.xz': Timeout was reached (28); retrying from offset 566004 in 630 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0wi0b2jk6n1sghsnws7r2v4c1dc854a6y6k183c1wdk8v52cr88s.nar.xz': Timeout was reached (28); retrying from offset 20855421 in 689 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1azjrv87p2vnajnfjhlwicb701lhd2sp3fqqbafiaikbv2q6pmxc.nar.xz': Timeout was reached (28); retrying from offset 262144 in 540 ms
warning: error: unable to download 'https://cache.nixos.org/nar/174858ssiv9axabddcbplyqad4rl1ba097nnlqlfalqij8qp91f6.nar.xz': Timeout was reached (28); retrying from offset 287476 in 696 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0zsnxw4pacl54hnwnjwkvsqqbzd3kr23b7cpfc2wbxsa7mdphcj4.nar.xz': Timeout was reached (28); retrying from offset 20001964 in 512 ms
warning: error: unable to download 'https://cache.nixos.org/nar/02g46jykp6mygggvb6aas12znz774drmbf6qdnlh9n8ly33y25cv.nar.xz': Timeout was reached (28); retrying from offset 19905228 in 570 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1a3nzgs95q123dlkilk9kr5g4j5jklgy4w6vcpf3ns7cw7sjj0xs.nar.xz': Timeout was reached (28); retrying from offset 6217705 in 612 ms
warning: error: unable to download 'https://cache.nixos.org/nar/080iqq3mwckkmrxh74hbq9d41f3f4w7ik3m8502m4hilax19lg6l.nar.xz': Timeout was reached (28); retrying from offset 5758260 in 677 ms
warning: error: unable to download 'https://cache.nixos.org/nar/10kgf3l6n15lx32hgcynnij28whnjifafa0v0xzkpwzrkswfpg2n.nar.xz': Timeout was reached (28); retrying from offset 16967777 in 640 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1sb6xmd6q9glqm2dv9mggkjckmwy0pxgxq4fa0dg4pw5lg0k45sk.nar.xz': Timeout was reached (28); retrying from offset 263025 in 526 ms
warning: error: unable to download 'https://cache.nixos.org/nar/14zkxg0wpdwim4ars2y7x3nxn2vm7bvqv8zdrcqa6rzzch5ch8kn.nar.xz': Timeout was reached (28); retrying from offset 2242864 in 559 ms
warning: error: unable to download 'https://cache.nixos.org/nar/15yc2xnh2c69x3bzr7kj25a41nha2810gzmn1a8ha97rln1q0l6k.nar.xz': Timeout was reached (28); retrying from offset 1866621 in 518 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1zqsrysf0vwwg7i536rzr0khm76rfrdrnwicnlcrcdklpgyglkmi.nar.xz': Timeout was reached (28); retrying from offset 17206207 in 535 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0l0nfg451barzv3kv5f37hbw13ka2fvmxxdvbjjpkjyx0ywsz54w.nar.xz': Timeout was reached (28); retrying from offset 7307264 in 506 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1iz8hzizr559f3znp6g08jdq49v90s3zwdrfqlfpxyqhb5il47x6.nar.xz': Timeout was reached (28); retrying from offset 49324788 in 1048 ms
warning: error: unable to download 'https://cache.nixos.org/nar/114apv1pj04h94lkilz1gc2xyj1h40fwr6p9mfy3bn7gidg127w3.nar.xz': Timeout was reached (28); retrying from offset 6218150 in 1086 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1mbvqni9m5s89ghmwvfwfqip9f9s4ycvjs4li603ig9s42nk92s3.nar.xz': Timeout was reached (28); retrying from offset 566004 in 1215 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0wi0b2jk6n1sghsnws7r2v4c1dc854a6y6k183c1wdk8v52cr88s.nar.xz': Timeout was reached (28); retrying from offset 20855421 in 1324 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0zsnxw4pacl54hnwnjwkvsqqbzd3kr23b7cpfc2wbxsa7mdphcj4.nar.xz': Timeout was reached (28); retrying from offset 20001964 in 1165 ms
warning: error: unable to download 'https://cache.nixos.org/nar/15yc2xnh2c69x3bzr7kj25a41nha2810gzmn1a8ha97rln1q0l6k.nar.xz': Timeout was reached (28); retrying from offset 1866621 in 1206 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1sb6xmd6q9glqm2dv9mggkjckmwy0pxgxq4fa0dg4pw5lg0k45sk.nar.xz': Timeout was reached (28); retrying from offset 263025 in 1245 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1azjrv87p2vnajnfjhlwicb701lhd2sp3fqqbafiaikbv2q6pmxc.nar.xz': Timeout was reached (28); retrying from offset 262144 in 1358 ms
warning: error: unable to download 'https://cache.nixos.org/nar/14zkxg0wpdwim4ars2y7x3nxn2vm7bvqv8zdrcqa6rzzch5ch8kn.nar.xz': Timeout was reached (28); retrying from offset 2242864 in 1121 ms
warning: error: unable to download 'https://cache.nixos.org/nar/02g46jykp6mygggvb6aas12znz774drmbf6qdnlh9n8ly33y25cv.nar.xz': Timeout was reached (28); retrying from offset 19905228 in 1250 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1a3nzgs95q123dlkilk9kr5g4j5jklgy4w6vcpf3ns7cw7sjj0xs.nar.xz': Timeout was reached (28); retrying from offset 6217705 in 1290 ms
warning: error: unable to download 'https://cache.nixos.org/nar/10kgf3l6n15lx32hgcynnij28whnjifafa0v0xzkpwzrkswfpg2n.nar.xz': Timeout was reached (28); retrying from offset 16967777 in 1299 ms
warning: error: unable to download 'https://cache.nixos.org/nar/080iqq3mwckkmrxh74hbq9d41f3f4w7ik3m8502m4hilax19lg6l.nar.xz': Timeout was reached (28); retrying from offset 5758260 in 1171 ms
warning: error: unable to download 'https://cache.nixos.org/nar/174858ssiv9axabddcbplyqad4rl1ba097nnlqlfalqij8qp91f6.nar.xz': Timeout was reached (28); retrying from offset 287476 in 1379 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1zqsrysf0vwwg7i536rzr0khm76rfrdrnwicnlcrcdklpgyglkmi.nar.xz': Timeout was reached (28); retrying from offset 17206207 in 1225 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0l0nfg451barzv3kv5f37hbw13ka2fvmxxdvbjjpkjyx0ywsz54w.nar.xz': Timeout was reached (28); retrying from offset 7307264 in 1194 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1iz8hzizr559f3znp6g08jdq49v90s3zwdrfqlfpxyqhb5il47x6.nar.xz': Timeout was reached (28); retrying from offset 49324788 in 2096 ms
warning: error: unable to download 'https://cache.nixos.org/nar/114apv1pj04h94lkilz1gc2xyj1h40fwr6p9mfy3bn7gidg127w3.nar.xz': Timeout was reached (28); retrying from offset 6218150 in 2038 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1mbvqni9m5s89ghmwvfwfqip9f9s4ycvjs4li603ig9s42nk92s3.nar.xz': Timeout was reached (28); retrying from offset 566004 in 2435 ms
warning: error: unable to download 'https://cache.nixos.org/nar/14zkxg0wpdwim4ars2y7x3nxn2vm7bvqv8zdrcqa6rzzch5ch8kn.nar.xz': Timeout was reached (28); retrying from offset 2242864 in 2227 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0zsnxw4pacl54hnwnjwkvsqqbzd3kr23b7cpfc2wbxsa7mdphcj4.nar.xz': Timeout was reached (28); retrying from offset 20001964 in 2430 ms
warning: error: unable to download 'https://cache.nixos.org/nar/15yc2xnh2c69x3bzr7kj25a41nha2810gzmn1a8ha97rln1q0l6k.nar.xz': Timeout was reached (28); retrying from offset 1866621 in 2131 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0wi0b2jk6n1sghsnws7r2v4c1dc854a6y6k183c1wdk8v52cr88s.nar.xz': Timeout was reached (28); retrying from offset 20855421 in 2321 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1sb6xmd6q9glqm2dv9mggkjckmwy0pxgxq4fa0dg4pw5lg0k45sk.nar.xz': Timeout was reached (28); retrying from offset 263025 in 2738 ms
warning: error: unable to download 'https://cache.nixos.org/nar/02g46jykp6mygggvb6aas12znz774drmbf6qdnlh9n8ly33y25cv.nar.xz': Timeout was reached (28); retrying from offset 19905228 in 2305 ms
warning: error: unable to download 'https://cache.nixos.org/nar/080iqq3mwckkmrxh74hbq9d41f3f4w7ik3m8502m4hilax19lg6l.nar.xz': Timeout was reached (28); retrying from offset 5758260 in 2155 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1azjrv87p2vnajnfjhlwicb701lhd2sp3fqqbafiaikbv2q6pmxc.nar.xz': Timeout was reached (28); retrying from offset 262144 in 2653 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1a3nzgs95q123dlkilk9kr5g4j5jklgy4w6vcpf3ns7cw7sjj0xs.nar.xz': Timeout was reached (28); retrying from offset 6217705 in 2135 ms
warning: error: unable to download 'https://cache.nixos.org/nar/10kgf3l6n15lx32hgcynnij28whnjifafa0v0xzkpwzrkswfpg2n.nar.xz': Timeout was reached (28); retrying from offset 16967777 in 2064 ms
warning: error: unable to download 'https://cache.nixos.org/nar/174858ssiv9axabddcbplyqad4rl1ba097nnlqlfalqij8qp91f6.nar.xz': Timeout was reached (28); retrying from offset 287476 in 2678 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1zqsrysf0vwwg7i536rzr0khm76rfrdrnwicnlcrcdklpgyglkmi.nar.xz': Timeout was reached (28); retrying from offset 17206207 in 2513 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0l0nfg451barzv3kv5f37hbw13ka2fvmxxdvbjjpkjyx0ywsz54w.nar.xz': Timeout was reached (28); retrying from offset 7307264 in 2173 ms
error: unable to download 'https://cache.nixos.org/nar/1iz8hzizr559f3znp6g08jdq49v90s3zwdrfqlfpxyqhb5il47x6.nar.xz': Timeout was reached (28)
error: some substitutes for the outputs of derivation '/nix/store/qgj7jvdwb42h72s9q93v1jn28mxzzjdi-linux-zen-6.14.4.drv' failed (usually happens due to networking issues); try '--fallback' to build derivation from source
warning: error: unable to download 'https://cache.nixos.org/nar/1y3b8yfaqrws4jb6c48h5rwsp1l736gyqac92wdm3cgk1krzpvc8.nar.xz': Failed sending data to the peer (55); retrying in 296 ms
error: 1 dependencies of derivation '/nix/store/aba47ial75iqmhfwm1lkkp83w9ihbl4f-nixos-system-desktop-25.05.20250503.7a2622e.drv' failed to build

That’s okay?

The repository you link is set up for AMD GPUs. You could use it as a base, but you’re going to be changing a lot about it to make it match your system; it’s not designed with options to make this easy for you.

I’d really recommend starting from scratch, and looking at other repositories for tips instead. It looks like a pretty reasonable configuration to look at for that purpose.

As for your GPU, NVIDIA GPUs are a PITA to configure. I happen to have the exact hardware you do, though. YMMV but I’m working on a module for NVIDIA config: dotfiles/nixos-modules/nvidia/default.nix at 5c3d7d5365c859b23135b2acbd5807232e122271 · TLATER/dotfiles · GitHub

You could actually import the module, but for the time being I would recommend looking through the files involved and pretending you have withIntegratedGPU = false;. If you tell me which compositor/DE/WM you intend to use I can give additional tips.

It should boil down to this:

# nvidia.nix
{ config, pkgs, lib, ... }:
{
  services.xserver.videoDrivers = [ "nvidia" ];

  hardware.nvidia = {
    # This will no longer be necessary when
    # https://github.com/NixOS/nixpkgs/pull/326369 hits stable
    modesetting.enable = lib.mkDefault true;
    # Power management is nearly always required to get nvidia GPUs to
    # behave on suspend, due to firmware bugs.
    powerManagement.enable = true;
    # The open driver is recommended by nvidia now, see
    # https://download.nvidia.com/XFree86/Linux-x86_64/565.57.01/README/kernel_open.html
    open = true;
  };

  boot.extraModprobeConfig = "options nvidia NVreg_UsePageAttributeTable=1 NVreg_RegistryDwords=RMUseSwI2c=0x01;RMI2cSpeed=100";

  # Use firefox; the hardware accel does not support chrome
  hardware.opengl.extraPackages = [ pkgs.nvidia-vaapi-driver ];

  environment = {
    systemPackages = [ pkgs.libva-utils ];
    variables = {
      NVD_BACKEND = "direct";
      LIBVA_DRIVER_NAME = "nvidia";
      MOZ_DISABLE_RDD_SANDBOX = "1";
    };
  };

  programs.firefox.preferences = lib.mkIf cfg.firefox.enable {
    "media.ffmpeg.vaapi.enabled" = true;
    "media.rdd-ffmpeg.enabled" = true;
    "media.av1.enabled" = cfg.firefox.av1Support;
    "gfx.x11-egl.force-enabled" = true;
    "widget.dmabuf.force-enabled" = true;
  };
}
1 Like

When trying to run the script with the NVIDIA module, I get an error.

error: path '/nix/store/v22rcxssmhjj2j481g07i1zp0y3a6437-source/modules/home/nvidia.nix' does not exist

If you’re using a flake in a git repository, you have to git add the file, too, since flakes copy the repository as reported by git to the nix store before evaluating (which happens to be the biggest flake misfeature IMO, albeit not because it prevents things not seen by git from being evaluated - though that’s still a huge issue, to be frank, at least as long as it doesn’t tell users about the problem).

1 Like

It’s so hard to figure this out.

Maybe I could try using your NixOS configuration instead.

It’s a bit easier to start out with stable nix and find your way into how the system works IMO, than it is to start with flakes and all their baggage right out of the gate. npins are probably more worth recommending, but again, now I’m sending you down further third party things which means lots of doc reading about stuff you don’t understand yet.

Sadly the nix ecosystem is riddled with little papercuts like this and footguns are littered everywhere. It’s all pretty awesome when you’ve figured it out, but it can be tough to get started. Good luck, we’re here to support - share your configuration if you run into problems you don’t understand.

I wouldn’t recommend using other people’s NixOS configurations. Definitely not mine, at least.

They’re very purpose-built, and often need you to understand how they work to use them properly. If you ask for help with them, often they’ll be large and cumbersome, so people won’t be able to help you effectively.

Start with the default configuration that you generated during installation, and just add what you want to it. It’s a single file, so that really helps send it around for support purposes.

1 Like

You’re probably right — I just want a beautiful and convenient system, that’s all.

It takes a bit of work. You’ve almost got the ingredients, though! Stylix is an important piece of the puzzle, the next is figuring out what WM/DE/compositor you want to use. GNOME is a good starting point for newbies. If you configure GNOME, and then use stylix to set some colors and pick a nice wallpaper, you’re basically there.

You can add further bells and whistles from there as you get more familiar with all of this :slight_smile: