From acbe48b736008d98ed3be1b58ff44a99fd97f843 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:44:57 -0700 Subject: [PATCH] stuf --- systems/BASED.nix | 3 ++- systems/NOcomputer.nix | 1 + systems/NOlaptop.nix | 10 ++++++++++ users/tao/nushell/stuff.nu | 3 ++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/systems/BASED.nix b/systems/BASED.nix index f57081f..a5dba6c 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -102,7 +102,8 @@ security.sudo.enable = false; i18n.inputMethod = { - enabled = "fcitx5"; + enable = true; + type = "fcitx5"; fcitx5.addons = with pkgs; [ fcitx5-gtk fcitx5-mozc diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index fe0d1fd..946e75e 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -5,6 +5,7 @@ ... }: { environment.systemPackages = with pkgs; [ + nvtopPackages.nvidia # egl-wayland # gpt4all-chat # nvidia-vaapi-driver diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index abfa43f..db57465 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -4,6 +4,16 @@ pkgs, ... }: { + # boot.kernelPatches = [ + # (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11") + # { + # name = "cros_ec_lpc"; + # patch = pkgs.fetchpatch { + # url = "https://patchwork.kernel.org/series/840830/mbox/"; + # sha256 = "sha256-7jSEAGInFC+a+ozCyD4dFz3Qgh2JrHskwz7UfswizFw="; + # }; + # }) + # ]; # nixpkgs.overlays = [ # (final: prev: { # libinput = prev.libinput.overrideAttrs (old: { diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index fed35ff..e27b0cc 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -49,7 +49,8 @@ def nr [package] { } def rebuild [subcommand] { - sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose + sudo nix store ping --store ssh://nocomputer + sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose } # def post-rebuild [] { # # rm -r ~/.config/helix/runtime/grammars/