[systems] disable nvidia from phaedra
This commit is contained in:
parent
42abf4b27c
commit
55c8a0273f
@ -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"'';
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user