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 @@...@@ -1,16 +1,17 @@
1#!/bin/sh1#!/bin/sh
2set -e
3cd "$(dirname "$0")"
2nh_subcommand="os"4nh_subcommand="os"
3fallback_command="nixos-rebuild"5fallback_command="nixos-rebuild"
4hostname_file="$(dirname "$0")/.hostname"
5if [ -n "$1" ]; then6if [ -n "$1" ]; then
6 hostname="$1"7 hostname="$1"
7elif [ -f "$hostname_file" ]; then8elif [ -f ".hostname" ]; then
8 hostname=$(cat "$hostname_file")9 hostname=$(cat .hostname)
9fi10fi
10if [ -z "$hostname" ]; then11if [ -z "$hostname" ]; then
11 hostname="$(hostname)"12 hostname="$(hostname)"
12fi13fi
13printf "%s" "$hostname" >"$hostname_file"14printf "%s" "$hostname" >.hostname
14if [ "$(uname -o)" = "Darwin" ]; then15if [ "$(uname -o)" = "Darwin" ]; then
15 nh_subcommand="darwin"16 nh_subcommand="darwin"
16 fallback_command="nix run .#darwin-rebuild"17 fallback_command="nix run .#darwin-rebuild"
users/clover/home.nix+28-6
...@@ -48,9 +48,10 @@ in...@@ -48,9 +48,10 @@ in
48 settings = {48 settings = {
49 theme = "light:Farmhouse Light,dark:Challenger Deep";49 theme = "light:Farmhouse Light,dark:Challenger Deep";
50 font-family = "AT Name Mono";50 font-family = "AT Name Mono";
51 adjust-cursor-thickness = 1;51 adjust-cursor-thickness = 2;
52 background-opacity = 0.9;52 background-opacity = 0.95;
53 background-blur = true;53 background-blur = true;
54 unfocused-split-opacity = 1;
54 };55 };
55 };56 };
5657
...@@ -59,10 +60,16 @@ in...@@ -59,10 +60,16 @@ in
59 enable = true;60 enable = true;
60 shellAliases = {61 shellAliases = {
61 switch = "~/config/switch";62 switch = "~/config/switch";
62 gg = "lazygit";63
63 ga = "git add";64 # move a bookmark from the previous commit
64 g = "git status";65 jf = "jj git fetch";
65 gp = "git pull --rebase && git push";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";
66 };73 };
67 initContent = ''74 initContent = ''
68 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "75 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "
...@@ -74,6 +81,21 @@ in...@@ -74,6 +81,21 @@ in
74 fi81 fi
75 uv run --project "$dirname" "$@"82 uv run --project "$dirname" "$@"
76 }83 }
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 }
77 '';99 '';
78 };100 };
79101
users/clover/work/home.nix+2-2
...@@ -10,10 +10,10 @@...@@ -10,10 +10,10 @@
10 };10 };
11 home.packages = with pkgs; [11 home.packages = with pkgs; [
12 (bun.overrideAttrs (_: rec {12 (bun.overrideAttrs (_: rec {
13 version = "1.1.17";13 version = "1.3.0";
14 src = fetchurl {14 src = fetchurl {
15 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";15 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";
16 hash = "sha256-aULgRZ9evcGUhKJ6slLJOg3IEzUeNfIkJF8RDP3YUlo=";16 hash = "sha256-hYSOP5ZIHvyr51pQD9O5S5u5VoaretCjiSl2x74VA2o=";
17 };17 };
18 }))18 }))
19 doppler19 doppler