amd bug workaround

This commit is contained in:
Tao Tien 2024-12-28 21:51:26 -08:00
parent 87a979df25
commit 231034ac69
3 changed files with 3 additions and 2 deletions

View file

@ -73,6 +73,7 @@
# ]; # ];
boot.kernelParams = [ boot.kernelParams = [
"amdgpu.abmlevel=1" "amdgpu.abmlevel=1"
"amdgpu.dcdebugmask=0x400"
]; ];
# boot.kernelModules = ["kvm-amd"]; # boot.kernelModules = ["kvm-amd"];
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";

View file

@ -102,7 +102,7 @@
SUBVOLUME = "/home"; SUBVOLUME = "/home";
# FSTYPE = "bcachefs"; # FSTYPE = "bcachefs";
FSTYPE = FSTYPE =
if lib.nixosSystem == "NOlaptop" if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname)
then "bcachefs" then "bcachefs"
else "btrfs"; else "btrfs";
ALLOW_USERS = ["tao"]; ALLOW_USERS = ["tao"];

View file

@ -69,7 +69,7 @@ def nr [package] {
nix search nixpkgs $package nix search nixpkgs $package
} }
def rebuild --wrapped [subcommand, ...rest] { def rebuild --wrapped [subcommand, ...rest] {
if ((open /etc/hostname --raw) == "NOlaptop\n") { if ((open /etc/hostname --raw) == "NOlaptop\n" and not ($rest | first | str starts-with "--builders")) {
sudo nix store info --store ssh://nocomputer sudo nix store info --store ssh://nocomputer
} }
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest