various
This commit is contained in:
parent
98e3cbbaaf
commit
946c6157bf
4 changed files with 24 additions and 16 deletions
|
|
@ -11,8 +11,9 @@
|
||||||
# nvidia-vaapi-driver
|
# nvidia-vaapi-driver
|
||||||
# foldingathome
|
# foldingathome
|
||||||
# gwe
|
# gwe
|
||||||
openrgb
|
# openrgb
|
||||||
];
|
];
|
||||||
|
services.hardware.openrgb.enable = true;
|
||||||
|
|
||||||
services.tailscale.useRoutingFeatures = "both";
|
services.tailscale.useRoutingFeatures = "both";
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
|
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
|
||||||
|
|
@ -28,7 +29,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = true;
|
||||||
# options: production, beta, vulkan_beta, latest
|
# options: production, beta, vulkan_beta, latest
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
open = true;
|
open = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
[alias]
|
[alias]
|
||||||
rr = "run --release"
|
rr = "run --release"
|
||||||
|
rb = "run --bin"
|
||||||
|
d = "doc --no-deps --open"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
target = "x86_64-unknown-linux-gnu"
|
target = "x86_64-unknown-linux-gnu"
|
||||||
|
|
|
||||||
|
|
@ -70,25 +70,30 @@ def ns [package] {
|
||||||
def nr [package] {
|
def nr [package] {
|
||||||
nix search nixpkgs $package
|
nix search nixpkgs $package
|
||||||
}
|
}
|
||||||
def rebuild --wrapped [subcommand, ...rest] {
|
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
||||||
if ((open /etc/hostname --raw) == "NOlaptop\n" and not (try {$rest | first | str starts-with "--builders"} catch {true})) {
|
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders | is-empty) {
|
||||||
sudo nix store info --store ssh://nocomputer
|
sudo nix store info --store ssh://nocomputer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($builders | is-empty) {
|
||||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
|
||||||
|
} else {
|
||||||
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose --builders $builders ...$rest
|
||||||
|
}
|
||||||
toastify send rebuild done!
|
toastify send rebuild done!
|
||||||
}
|
}
|
||||||
# def post-rebuild [] {
|
def post-rebuild [] {
|
||||||
# # rm -r ~/.config/helix/runtime/grammars/
|
rm -r ~/.config/helix/runtime/grammars/
|
||||||
# # hx --grammar fetch; hx --grammar build
|
hx --grammar fetch; hx --grammar build
|
||||||
# # rustup update
|
rustup update
|
||||||
# }
|
}
|
||||||
def bump [] {
|
def bump --wrapped [...rest] {
|
||||||
cd /home/tao/projects/NOflake/
|
cd /home/tao/projects/NOflake/
|
||||||
jj new -m "bump"
|
jj new -m "bump"
|
||||||
nix flake update
|
nix flake update
|
||||||
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
|
# 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
|
||||||
rebuild boot
|
rebuild boot ...$rest
|
||||||
jj new
|
jj new
|
||||||
}
|
}
|
||||||
alias rb = rebuild boot
|
alias rb = rebuild boot
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ local config = {
|
||||||
|
|
||||||
hide_tab_bar_if_only_one_tab = true,
|
hide_tab_bar_if_only_one_tab = true,
|
||||||
|
|
||||||
-- enable_wayland = false,
|
enable_wayland = false,
|
||||||
-- webgpu_power_preference = 'LowPower',
|
-- webgpu_power_preference = 'LowPower',
|
||||||
-- front_end = 'WebGpu',
|
-- front_end = 'WebGpu',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue