diff --git a/nix/systems/phaedra/hardware-configuration.nix b/nix/systems/phaedra/hardware-configuration.nix index 1730553..5d2f1fa 100644 --- a/nix/systems/phaedra/hardware-configuration.nix +++ b/nix/systems/phaedra/hardware-configuration.nix @@ -33,4 +33,16 @@ # hardware hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + # disable nvidia! + systemd.services.removeNvidia = { + wantedBy = [ "multi-user.target" ]; + description = "Remove NVIDIA upon boot"; + serviceConfig = { + Type = "oneshot"; + User = "root"; + RemainAfterExit = true; + ExecStart = ''${pkgs.bash}/bin/bash -c "echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove"''; + }; + }; }