authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-10-27 13:24:50-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-10-27 13:24:50-07:00
loge2b8565883a286f4b254a6c8dac2cf89696d0918
treebd90b1184183215cbfce057722ccf96659a68776
parentd046afcbfaca4760a4357b5d653a7220f990ccc3
parent970faf03945ee254b2d2e9e161cac7b7b590621a
signature Commit is signed but in an unrecognized format.

Merge branch 'main' of paperclover.dev:nix/config


3 files changed, 35 insertions(+), 12 deletions(-)

switch+5-4
......@@ -1,16 +1,17 @@
11#!/bin/sh
2set -e
3cd "$(dirname "$0")"
24nh_subcommand="os"
35fallback_command="nixos-rebuild"
4hostname_file="$(dirname "$0")/.hostname"
56if [ -n "$1" ]; then
67 hostname="$1"
7elif [ -f "$hostname_file" ]; then
8 hostname=$(cat "$hostname_file")
8elif [ -f ".hostname" ]; then
9 hostname=$(cat .hostname)
910fi
1011if [ -z "$hostname" ]; then
1112 hostname="$(hostname)"
1213fi
13printf "%s" "$hostname" >"$hostname_file"
14printf "%s" "$hostname" >.hostname
1415if [ "$(uname -o)" = "Darwin" ]; then
1516 nh_subcommand="darwin"
1617 fallback_command="nix run .#darwin-rebuild"
users/clover/home.nix+28-6
......@@ -48,9 +48,10 @@ in
4848 settings = {
4949 theme = "light:Farmhouse Light,dark:Challenger Deep";
5050 font-family = "AT Name Mono";
51 adjust-cursor-thickness = 1;
52 background-opacity = 0.9;
51 adjust-cursor-thickness = 2;
52 background-opacity = 0.95;
5353 background-blur = true;
54 unfocused-split-opacity = 1;
5455 };
5556 };
5657
......@@ -59,10 +60,16 @@ in
5960 enable = true;
6061 shellAliases = {
6162 switch = "~/config/switch";
62 gg = "lazygit";
63 ga = "git add";
64 g = "git status";
65 gp = "git pull --rebase && git push";
63
64 # move a bookmark from the previous commit
65 jf = "jj git fetch";
66 e = "jj edit";
67 d = "jj desc";
68 bup = "jj b m --from 'parents(@)' --to '@'";
69 push = "jj git push";
70 moveself = "jj rebase -r @ -d";
71 logall = "jj log -r 'all()'";
72 cherry = "jj git fetch && jj split -i -p -m 'SPLIT_CHANGES' && jj edit -r 'description(\"SPLIT_CHANGES\")' && jj desc -m '' --edit";
6673 };
6774 initContent = ''
6875 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "
......@@ -74,6 +81,21 @@ in
7481 fi
7582 uv run --project "$dirname" "$@"
7683 }
84
85 function pr() {
86 message=$(jj log -r '@' -T 'description' --no-graph)
87 if [[ -z "$message" ]] || [[ "$message" = "WIP:"* ]]; then
88 jj desc
89 fi
90 if [ -n "$1" ]; then
91 jj git push --named "clo/$1"=@
92 branch="clo/$1"
93 else
94 branch="$(jj log -r '@' -T '"clo/push-" ++ change_id.short()' --no-graph)"
95 jj git push -c @
96 fi
97 open "$(git remote get-url origin | sed 's/git@github\.com:/https:\/\/github.com\//' | sed 's/\.git$//')/compare/master...$branch"
98 }
7799 '';
78100 };
79101
users/clover/work/home.nix+2-2
......@@ -10,10 +10,10 @@
1010 };
1111 home.packages = with pkgs; [
1212 (bun.overrideAttrs (_: rec {
13 version = "1.1.17";
13 version = "1.3.0";
1414 src = fetchurl {
1515 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";
16 hash = "sha256-aULgRZ9evcGUhKJ6slLJOg3IEzUeNfIkJF8RDP3YUlo=";
16 hash = "sha256-hYSOP5ZIHvyr51pQD9O5S5u5VoaretCjiSl2x74VA2o=";
1717 };
1818 }))
1919 doppler