diff --git a/switch.sh b/switch.sh index ca90a63..d941066 100644 --- a/switch.sh +++ b/switch.sh @@ -16,7 +16,6 @@ read -n1 -rp "${bold}Activate new configuration? [y/N]$reset " answer echo if [[ $answer =~ ^[Yy]$ ]]; then - sudo nix-env --profile /nix/var/nix/profiles/system --set "$configuration" sudo "$configuration/bin/switch-to-configuration" switch else echo "${bold}Not activating :($reset" diff --git a/systems/fuji/nvidia.nix b/systems/fuji/nvidia.nix index e77dab7..5de78ce 100644 --- a/systems/fuji/nvidia.nix +++ b/systems/fuji/nvidia.nix @@ -1,7 +1,6 @@ { lib, pkgs, - config, ... }: { @@ -20,14 +19,7 @@ hardware = { graphics.extraPackages = [ pkgs.vaapiVdpau ]; nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.mkDriver { - version = "550.142"; - sha256_64bit = "sha256-bdVJivBLQtlSU7Zre9oVCeAbAk0s10WYPU3Sn+sXkqE="; - sha256_aarch64 = "sha256-sBp5fcCPMrfrTZTF1FqKo9g0wOWP+5+wOwQ7PLWI6wA="; - openSha256 = "sha256-hjpwTR4I0MM5dEjQn7MKM3RY1a4Mt6a61Ii9KW2KbiY="; - settingsSha256 = "sha256-Wk6IlVvs23cB4s0aMeZzSvbOQqB1RnxGMv3HkKBoIgY="; - persistencedSha256 = "sha256-yQFrVk4i2dwReN0XoplkJ++iA1WFhnIkP7ns4ORmkFA="; - }; + # package = config.boot.kernelPackages.nvidiaPackages.production; open = true; modesetting.enable = true; powerManagement = {