authorgravatar for 77413091+JulianBarbera@users.noreply.github.comFish <77413091+JulianBarbera@users.noreply.github.com> 2025-09-30 21:54:01-07:00
committergravatar for 77413091+JulianBarbera@users.noreply.github.comFish <77413091+JulianBarbera@users.noreply.github.com> 2025-09-30 21:54:01-07:00
log3b80f030b5e98f38f37725c19088d862d8cbc6c1
treed233f6603f0db412fdc91e804c705ea06172e38b
parent94fcf2aaa0ea020ce7c3b9b0589b5eb39a738f62
parent7fd3f19d2b7d0c7ccd42d903f574ccfab32ac07d

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


6 files changed, 60 insertions(+), 25 deletions(-)

.gitignore+2-1
......@@ -1,4 +1,5 @@
1flake.lock
21.DS_STORE
2.hostname
3flake.lock
34result
45result-*
flake.nix+6
......@@ -133,6 +133,12 @@
133133 host = "paperback";
134134 system = "aarch64-darwin";
135135 };
136 # clover's work macbook pro
137 darwinConfigurations.clover-work-mac = mkSystem "clover-work-mac" {
138 user = "clover";
139 host = "work";
140 system = "aarch64-darwin";
141 };
136142
137143 # fish's cattop
138144 nixosConfigurations.cattop = mkSystem "cattop" {
switch+16-5
......@@ -1,12 +1,23 @@
11#!/bin/sh
22nh_subcommand="os"
33fallback_command="nixos-rebuild"
4if [ "$(uname -o)" = "darwin" ]; then
5 nh_subcommand="darwin"
6 fallback_command="nix run .#darwin-rebuild"
4hostname_file="$(dirname "$0")/.hostname"
5if [ -n "$1" ]; then
6 hostname="$1"
7elif [ -f "$hostname_file" ]; then
8 hostname=$(cat "$hostname_file")
9fi
10if [ -z "$hostname" ]; then
11 hostname="$(hostname)"
12fi
13printf "%s" "$hostname" >"$hostname_file"
14if [ "$(uname -o)" = "Darwin" ]; then
15 nh_subcommand="darwin"
16 fallback_command="nix run .#darwin-rebuild"
17 hostname="darwinConfigurations.$hostname"
718fi
819if command -v nh >/dev/null; then
9 nh $nh_subcommand switch .
20 nh $nh_subcommand switch '.#'"$hostname"
1021else
11 $fallback_command -- switch --flake .
22 $fallback_command -- switch --flake '.#'"$hostname"
1223fi
users/clover/home.nix+9-15
......@@ -10,9 +10,7 @@ in
1010 let
1111 # packages to always install
1212 all = [
13 (ffmpeg.override {
14 withSvtav1 = true;
15 })
13 ffmpeg-full
1614 ripgrep
1715 uv
1816 nh
......@@ -22,6 +20,7 @@ in
2220 desktop = [
2321 git-town
2422 lazygit
23 jjui
2524 ];
2625 # packages to install on all servers
2726 server = [ ];
......@@ -49,7 +48,7 @@ in
4948 shader = "cursor-smear-black.glsl";
5049 package = null;
5150 settings = {
52 theme = "light:farmhouse-light,dark:ChallengerDeep";
51 theme = "light:Farmhouse Light,dark:Challenger Deep";
5352 font-family = "AT Name Mono";
5453 adjust-cursor-thickness = 1;
5554 background-opacity = 0.9;
......@@ -61,7 +60,7 @@ in
6160 zsh = {
6261 enable = true;
6362 shellAliases = {
64 switch = "nh darwin switch ~/config";
63 switch = "~/config/switch";
6564 gg = "lazygit";
6665 ga = "git add";
6766 g = "git status";
......@@ -147,7 +146,7 @@ in
147146 };
148147 muted = "bright black";
149148 };
150 ui.graph.style = "square";
149 # ui.graph.style = "square";
151150 revsets = {
152151 log = "ancestors(description(regex:\"^(WIP:|\\\\s*$)\"), 3) | ancestors(immutable_heads(), 2) | ancestors(visible_heads(), 2)";
153152 short-prefixes = "(trunk()..@)::";
......@@ -158,8 +157,10 @@ in
158157 # log template, highlighting the WIP commits by making everything else faded out
159158 "hl_wip(commit)" = ''
160159 if(commit.root(), format_root_commit(commit),
161 format_short_commit_header(commit) ++ "\n" ++
162 format_commit_description(commit)
160 label("__commit__",
161 format_short_commit_header(commit) ++ "\n" ++
162 format_commit_description(commit)
163 )
163164 )
164165 '';
165166
......@@ -276,12 +277,5 @@ in
276277 "nas.paperclover.net" = zenith;
277278 };
278279 };
279 neovide = {
280 enable = !hostServer;
281 settings = {
282 font.normal = "AT Name Mono";
283 font.size = 13;
284 };
285 };
286280 };
287281}
users/clover/paperback/home.nix-4
......@@ -3,7 +3,6 @@
33 # these programs are not globally installed to reduce distractions.
44 # most of these are needed for my work environment.
55 programs = {
6 bun.enable = true;
76 zsh.profileExtra = ''
87 _bun() {
98 local context state line
......@@ -12,7 +11,6 @@
1211 '';
1312 };
1413 home.packages = with pkgs; [
15 doppler
1614 deno
1715 nodejs_22
1816 rustup
......@@ -22,7 +20,5 @@
2220 yt-dlp
2321 spotdl
2422 zig
25 ssm-session-manager-plugin
26 awscli
2723 ];
2824}
users/clover/work/home.nix created+27
......@@ -0,0 +1,27 @@
1{ pkgs, ... }:
2{
3 programs = {
4 zsh.profileExtra = ''
5 _bun() {
6 local context state line
7 _arguments -C '*:file:_files'
8 }
9 '';
10 };
11 home.packages = with pkgs; [
12 (bun.overrideAttrs (_: rec {
13 version = "1.1.17";
14 src = fetchurl {
15 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";
16 hash = "sha256-aULgRZ9evcGUhKJ6slLJOg3IEzUeNfIkJF8RDP3YUlo=";
17 };
18 }))
19 doppler
20 deno
21 nodejs_24
22 rustup
23 typescript
24 ssm-session-manager-plugin
25 awscli
26 ];
27}