From 47bdac4aa843ab4f4dcbd9c730151c6c4ebf4e39 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 26 Mar 2024 21:24:42 +0100 Subject: [PATCH] [systems] disable nvidia from phaedra - added condition --- nix/systems/packages.nix | 1 + nix/systems/phaedra/hardware-configuration.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/nix/systems/packages.nix b/nix/systems/packages.nix index da47ada..59414b9 100644 --- a/nix/systems/packages.nix +++ b/nix/systems/packages.nix @@ -55,6 +55,7 @@ kitty meld mpv + unstable.multiviewer-for-f1 unstable.microsoft-edge nextcloud-client screen diff --git a/nix/systems/phaedra/hardware-configuration.nix b/nix/systems/phaedra/hardware-configuration.nix index 5d2f1fa..40a77de 100644 --- a/nix/systems/phaedra/hardware-configuration.nix +++ b/nix/systems/phaedra/hardware-configuration.nix @@ -36,6 +36,7 @@ # disable nvidia! systemd.services.removeNvidia = { + unitConfig.ConditionPathExists = "/sys/bus/pci/devices/0000:01:00.0/remove"; wantedBy = [ "multi-user.target" ]; description = "Remove NVIDIA upon boot"; serviceConfig = {