Compare commits

..

2 commits

Author SHA1 Message Date
uku
6a1ed9d562
fix(systems/fuji): pin nvidia driver to 550.142
570 is broken and does not allow me to stream on discord
2025-03-09 23:29:32 +01:00
uku
630b1d63c5
fix(switch.sh): actually add the generation to nix profiles 2025-03-09 23:24:09 +01:00
2 changed files with 10 additions and 1 deletions

View file

@ -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"

View file

@ -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 = {