From 03cb61d4a51547a2b29c7f598c5560acdce55292 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:42:24 -0800 Subject: [PATCH] conf --- extras/uwuraid.nix | 12 ++++++------ users/tao.nix | 2 +- users/tao/HOME.nix | 30 ++++++++++++++++++++++++++++++ users/tao/helix.nix | 15 +++++++++++++++ users/tao/nushell/stuff.nu | 4 ++++ 5 files changed, 56 insertions(+), 7 deletions(-) diff --git a/extras/uwuraid.nix b/extras/uwuraid.nix index 1b83592..883b7db 100644 --- a/extras/uwuraid.nix +++ b/extras/uwuraid.nix @@ -11,11 +11,11 @@ what = "//100.97.47.81/anime"; where = "/mnt/uwuraid/anime"; }) - # (opts - # // { - # what = "//100.97.47.81/appdata"; - # where = "/mnt/uwuraid/appdata"; - # }) + (opts + // { + what = "//100.97.47.81/appdata"; + where = "/mnt/uwuraid/appdata"; + }) (opts // { what = "//100.97.47.81/backup"; @@ -79,7 +79,7 @@ }; in [ (opts // {where = "/mnt/uwuraid/anime";}) - # (opts // {where = "/mnt/uwuraid/appdata";}) + (opts // {where = "/mnt/uwuraid/appdata";}) (opts // {where = "/mnt/uwuraid/backup";}) (opts // {where = "/mnt/uwuraid/everything";}) (opts // {where = "/mnt/uwuraid/games";}) diff --git a/users/tao.nix b/users/tao.nix index 2b67eab..966d4bc 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -62,7 +62,7 @@ taskwarrior3 thunderbird typst - typst-fmt + # typst-fmt tinymist vial wezterm diff --git a/users/tao/HOME.nix b/users/tao/HOME.nix index 35403d1..db3b435 100644 --- a/users/tao/HOME.nix +++ b/users/tao/HOME.nix @@ -29,6 +29,36 @@ in { home.file.".config/direnv/lib/uv.sh".source = ./uv.sh; programs = { + bacon = { + enable = true; + settings.jobs.default = { + command = [ + "cargo" + "clippy" + "--" + "-A" + "clippy::bool_to_int_with_if" + "-A" + "clippy::collapsible_else_if" + "-A" + "clippy::collapsible_if" + "-A" + "clippy::derive_partial_eq_without_eq" + "-A" + "clippy::get_first" + "-A" + "clippy::if_same_then_else" + "-A" + "clippy::len_without_is_empty" + "-A" + "clippy::map_entry" + "-A" + "clippy::while_let_on_iterator" + ]; + need_stdout = false; + }; + }; + bat = { enable = true; config = { diff --git a/users/tao/helix.nix b/users/tao/helix.nix index 22e8404..5a8648a 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -69,6 +69,7 @@ "bash" "gas" "sql" + "scheme" ]; language = [ { @@ -179,6 +180,14 @@ name = "toml"; auto-format = true; } + { + name = "typst"; + language-servers = ["tinymist"]; + } + { + name = "scheme"; + language-servers = ["steel"]; + } ]; language-servers = { rust-analyzer.config = { @@ -214,6 +223,12 @@ sqls = { command = "sqls"; }; + tinymist = { + command = "tinymist"; + }; + steel-language-server = { + command = "steel-language-server"; + }; }; grammar = [ { diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 7e5e5a8..a906113 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -178,3 +178,7 @@ def fixme [] { } source ~/.cache/starship/init.nu source ~/.zoxide.nu +def --env z [path: string = "~"] { + zo $path + l +}