From 583c039a261a5b71623005483d74193d0d249612 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 7 May 2024 13:37:09 -0700 Subject: [PATCH] pin specific linux kernel to test bug --- systems/NOcomputer.nix | 18 ++++++++++++++++-- users/tao/nushell/stuff.nu | 6 +++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index 547e41c..08fe2bf 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + pkgs, + lib, + ... +}: { nix.settings.system-features = [ "benchmark" "big-parallel" @@ -58,7 +62,17 @@ KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666" ''; - # boot.kernelPackages = pkgs.linuxPackages_latest; + # boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_8.override { + # argsOverride = rec { + # src = pkgs.fetchurl { + # url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; + # sha256 = "sha256-HEzcudVg+tH7ldssuK++3JIvnq2Eg3H+QDY7E/n2Mbo="; + # }; + # version = "6.8.8"; + # modDirVersion = "6.8.8"; + # }; + # }); + # boot.kernelPackages = pkgs.linuxPackages_6_8; boot.kernelPackages = pkgs.linuxPackages_zen; boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; boot.kernelModules = ["i2c-dev" "kvm-amd"]; diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 4d3911d..2212720 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -30,20 +30,20 @@ def bump [] { jj new -m "bump" nix flake update # rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix; - sudo nix store ping --store ssh://nocomputer + # sudo nix store ping --store ssh://nocomputer sudo nice -n19 nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose jj new } def rb [] { - sudo nix store ping --store ssh://nocomputer + # sudo nix store ping --store ssh://nocomputer sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose hx --grammar fetch; hx --grammar build rm -rf ~/.cache/jdtls/ } def rs [] { - sudo nix store ping --store ssh://nocomputer + # sudo nix store ping --store ssh://nocomputer sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose hx --grammar fetch; hx --grammar build rm -rf ~/.cache/jdtls/