[systems] disable nvidia from phaedra

This commit is contained in:
Simon Cornet 2024-03-26 21:02:14 +01:00
parent 42abf4b27c
commit 55c8a0273f

View File

@ -33,4 +33,16 @@
# hardware # hardware
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 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"'';
};
};
} }