This commit is contained in:
Tao Tien 2025-10-08 18:29:19 -07:00
parent f27aa8b65c
commit 35d2762ab1
12 changed files with 3054 additions and 20 deletions

View file

@ -65,6 +65,12 @@ alias list-automounts = systemctl list-units --type=automount
def remount [] {
let reload = list-automounts | detect columns -n | get column0 | input list --multi
for mount in $reload {
systemctl resart $mount
systemctl restart $mount
}
}
def cpedit [file: path] {
mv $file $"($file).sym"; cp $"($file).sym" $file; chmod +w $file
}
alias job = job list

File diff suppressed because it is too large Load diff

View file

@ -19,9 +19,9 @@ def rebuild [subcommand, --builders: string] {
}
}
if ($builders == "") {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --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 "" --log-format internal-json o+e>| nom --json
} else {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --log-format internal-json o+e>| nom --json
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose --log-format internal-json o+e>| nom --json
}
toastify send rebuild done!
}

View file

@ -39,7 +39,9 @@ def "snapper clear" [] {
snapper delete $"($first.number)-($last.number)"
}
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable"
let mode_path: path = (
glob "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" | get 0
)
def quiet [] {
match (hostname) {
@ -69,3 +71,7 @@ def asciicam [] {
$env.DISPLAY = null
mpv -vo caca av://v4l2:/dev/video0 --demuxer-lavf-o=input_format=mjpeg --profile=low-latency e>| /dev/null
}
def sunu [command] {
sudo nu --stdin --commands $command
}