This commit is contained in:
Tao Tien 2025-11-02 14:11:40 -08:00
parent 392db8f6d9
commit ae44595d0c
3 changed files with 22 additions and 11 deletions

View file

@ -13,6 +13,7 @@
services.scx.scheduler = "scx_lavd"; # default is "scx_rustland"
environment.systemPackages = with pkgs; [
basedpyright
mergiraf
lazyjj
egglog

View file

@ -10,7 +10,7 @@
};
environment.systemPackages = with pkgs; [
nvtopPackages.nvidia
# nvtopPackages.nvidia
# egl-wayland
# gpt4all-chat
# nvidia-vaapi-driver

View file

@ -19,11 +19,17 @@ def rebuild [subcommand, --builders: string] {
}
}
if ($builders == "") {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose --builders "" --log-format internal-json o+e>| nom --json
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose --builders "" o+e>| nom
} else {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose --log-format internal-json o+e>| nom --json
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose o+e>| nom
}
if $env.LAST_EXIT_CODE == 0 {
toastify send "rebuild" "done!"
return true
} else {
toastify send "rebuild" "failed!"
return false
}
toastify send rebuild done!
}
def post-rebuild [] {
@ -34,15 +40,19 @@ def post-rebuild [] {
def bump [...rest] {
cd /home/tao/projects/NOflake/
mut r = "@"
if (jj log -r @ --no-pager --no-graph --template 'if(empty,"empty")' | $in == "empty") {
$r = "@-"
match (jj log -r @ --no-pager --no-graph --template 'if(empty, "empty", self.description())') {
"empty" => {
jj desc -m "bump (unbuilt)"
}
"bump (unbuilt)" | "bump (failed)" => {}
}
jj new -m "bump" -r $r
nix flake update
sudo nix flake update
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
# sudo nix store ping --store ssh://nocomputer
rebuild boot
if (rebuild boot) {
jj desc -m $"bump (date now | format date "%Y-%m-%d")"
} else {
jj desc -m "bump (failed)"
}
jj new
}