From 630b1d63c550de56fcdc60b57f863c328955180b Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 9 Mar 2025 23:23:55 +0100 Subject: [PATCH 1/2] fix(switch.sh): actually add the generation to nix profiles --- switch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/switch.sh b/switch.sh index d941066..ca90a63 100644 --- a/switch.sh +++ b/switch.sh @@ -16,6 +16,7 @@ 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" From 6a1ed9d5627f7322697aed2070ee6cbcb5969fdd Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 9 Mar 2025 23:29:32 +0100 Subject: [PATCH 2/2] fix(systems/fuji): pin nvidia driver to 550.142 570 is broken and does not allow me to stream on discord --- systems/fuji/nvidia.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/systems/fuji/nvidia.nix b/systems/fuji/nvidia.nix index 5de78ce..e77dab7 100644 --- a/systems/fuji/nvidia.nix +++ b/systems/fuji/nvidia.nix @@ -1,6 +1,7 @@ { lib, pkgs, + config, ... }: { @@ -19,7 +20,14 @@ hardware = { graphics.extraPackages = [ pkgs.vaapiVdpau ]; nvidia = { - # package = config.boot.kernelPackages.nvidiaPackages.production; + 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="; + }; open = true; modesetting.enable = true; powerManagement = {