I’m not sure what the default kernel is for 19.09 but searching for the nvidia driver it looks like the package has changed to linuxPackages.nvidia_x11_legacy390. Maybe this is what I should use instead of nvidiaLegacy390.
I changed xserver to use the new name. Now I’m getting an error with systemd.
warning: the following units failed: systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/nix/store/6snycpaz9zrs5m7xz6dixl1nl0ngdrma-systemd-243/example/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/rli8cm5f5qki5w3w3wbzhh1f3n9g5d3i-system-units/systemd-timesyncd.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Fri 2019-10-11 17:45:03 EDT; 35ms ago
Docs: man:systemd-timesyncd.service(8)
Process: 1219 ExecStart=/nix/store/6snycpaz9zrs5m7xz6dixl1nl0ngdrma-systemd-243/lib/systemd/systemd-timesyncd (code=exited, status=238/STATE_DIRECTORY)
Main PID: 1219 (code=exited, status=238/STATE_DIRECTORY)
IP: 0B in, 0B out
CPU: 832us
Oct 11 17:45:03 n1 systemd[1]: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Oct 11 17:45:03 n1 systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.
Oct 11 17:45:03 n1 systemd[1]: Stopped Network Time Synchronization.
Oct 11 17:45:03 n1 systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Oct 11 17:45:03 n1 systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Oct 11 17:45:03 n1 systemd[1]: Failed to start Network Time Synchronization.
warning: error(s) occurred while switching to the new configuration
I don’t think that got you any of the official drivers. The list isn’t checked for typos etc. (that’s hard, as different drivers are handled by different parts of code)
That is weird, but I’ve never used switchable HW (optimus) and I don’t know its implementation. Actually, most people writing our nvidia tickets/issues seem to have problems with switchable setups; my feeling certainly is that it seems less reliable (on NixOS).
“nvidia” shouldn’t give you nouveau, you’re probably including the driver somewhere else. If you need a reference for the nvidia configuration, you can try looking at my configuration [1], though it’s messy but that should be where the bulk of the nvidia configuration is.
It turns out I do need to use nvidiaLegacy390. My computer is old and this seems to work now. Maybe the patches fix helped? When I switched to nvidia or anything else nouveau would be used instead.