From fada7e988b4f160719f5d8c4bca275e6fc406cb7 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 2 Dec 2025 17:33:57 -0800 Subject: [PATCH] stuf --- extras/uwuraid.nix | 20 +++++++++++++++++++- users/tao/helix.nix | 2 +- users/tao/nushell/extras/alias.nu | 4 ++-- users/tao/nushell/extras/nix.nu | 4 ++-- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/extras/uwuraid.nix b/extras/uwuraid.nix index 0fed7b3..b776d7f 100644 --- a/extras/uwuraid.nix +++ b/extras/uwuraid.nix @@ -3,7 +3,25 @@ systemd.mounts = let opts = { type = "cifs"; - mountConfig = {Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},gid=users,file_mode=0777,dir_mode=0777";}; + mountConfig = { + # Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},file_mode=0777,dir_mode=0777"; + Options = [ + "_netdev" + "noserverino" + "noauto" + "noatime" + "async" + "users" + "rw" + "x-systemd.automount" + "x-systemd.requires=network-online.target" + "nofail" + "soft" + "credentials=${config.age.secrets.uwuraid.path}" + "file_mode=0777" + "dir_mode=0777" + ]; + }; }; in [ (opts diff --git a/users/tao/helix.nix b/users/tao/helix.nix index bb6e949..bd8d316 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -56,7 +56,7 @@ k = "move_line_down"; }; normal.space = { - l = "reload-all"; + l = "@:reload-all"; w = { J = "swap_view_up"; K = "swap_view_down"; diff --git a/users/tao/nushell/extras/alias.nu b/users/tao/nushell/extras/alias.nu index c6940ef..d6e1f2e 100644 --- a/users/tao/nushell/extras/alias.nu +++ b/users/tao/nushell/extras/alias.nu @@ -56,8 +56,8 @@ def --env c [path: path = "~"] { l } -def l --wrapped [...rest] { - ls -t ...$rest | insert ext {|row| $row.name | parse "{name}.{ext}" | get ext | get 0? } | sort-by type ext name | reject type ext +def l --wrapped [path: path = ".", ...rest] { + ls -t $path ...$rest | insert ext {|row| $row.name | parse "{name}.{ext}" | get ext | get 0? } | sort-by type ext name | reject type ext } alias list-automounts = systemctl list-units --type=automount diff --git a/users/tao/nushell/extras/nix.nu b/users/tao/nushell/extras/nix.nu index 2692437..9280c6a 100644 --- a/users/tao/nushell/extras/nix.nu +++ b/users/tao/nushell/extras/nix.nu @@ -9,10 +9,10 @@ def ns [...packages: string] { # nix search nixpkgs $package # } -def --wrapped rebuild [subcommand, ...rest] { +def --wrapped rebuild [--force, subcommand, ...rest] { if not ( df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99} - ) { + ) and not $force { print "not enough disk space!" return false }