fix formatting

This commit is contained in:
Harivansh Rathi 2026-03-30 14:44:41 -04:00
parent 5747c7a6fd
commit 458778c860
5 changed files with 80 additions and 65 deletions

View file

@ -3,9 +3,11 @@
lib,
pkgs,
...
}: let
customScripts = import ../scripts {inherit config lib pkgs;};
in {
}:
let
customScripts = import ../scripts { inherit config lib pkgs; };
in
{
home.packages = builtins.attrValues customScripts.nettyPackages;
programs.zsh.initContent = lib.mkAfter ''

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
imports = [
./common.nix
./netty-worktree.nix

View file

@ -3,14 +3,16 @@
lib,
pkgs,
...
}: let
customScripts = import ../scripts {inherit config lib pkgs;};
in {
}:
let
customScripts = import ../scripts { inherit config lib pkgs; };
in
{
home.packages =
builtins.attrValues customScripts.commonPackages
++ lib.optionals pkgs.stdenv.isDarwin (builtins.attrValues customScripts.darwinPackages);
home.activation.initializeThemeState = lib.hm.dag.entryAfter ["writeBoundary"] ''
home.activation.initializeThemeState = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p "${customScripts.theme.paths.stateDir}" "${customScripts.theme.paths.fzfDir}" "${customScripts.theme.paths.ghosttyDir}" "${customScripts.theme.paths.tmuxDir}"
if [[ -f "${customScripts.theme.paths.stateFile}" ]]; then

View file

@ -3,14 +3,15 @@
lib,
pkgs,
...
}: {
}:
{
home.file.".oh-my-zsh/custom/themes/agnoster.zsh-theme".source = ../config/agnoster.zsh-theme;
home.activation.ensureOhMyZshCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
home.activation.ensureOhMyZshCache = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p "${config.xdg.cacheHome}/oh-my-zsh"
'';
home.packages = [pkgs.oh-my-zsh];
home.packages = [ pkgs.oh-my-zsh ];
programs.zsh = {
enable = true;
@ -21,8 +22,7 @@
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases =
{
shellAliases = {
co = "codex --dangerously-bypass-approvals-and-sandbox";
ca = "cursor-agent";
cc = "claude";
@ -42,8 +42,7 @@
tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale";
};
envExtra =
''
envExtra = ''
if [[ -f "$HOME/.cargo/env" ]]; then
. "$HOME/.cargo/env"
fi
@ -87,9 +86,7 @@
export BUN_INSTALL="$HOME/.bun"
export PNPM_HOME="${
if pkgs.stdenv.isDarwin
then "$HOME/Library/pnpm"
else "${config.xdg.dataHome}/pnpm"
if pkgs.stdenv.isDarwin then "$HOME/Library/pnpm" else "${config.xdg.dataHome}/pnpm"
}"
bindkey -v
typeset -U path PATH

View file

@ -2,19 +2,21 @@
config,
lib,
pkgs,
}: let
theme = import ../lib/theme.nix {inherit config;};
}:
let
theme = import ../lib/theme.nix { inherit config; };
tmuxConfigs = {
dark = pkgs.writeText "tmux-theme-dark.conf" (theme.renderTmux "dark");
light = pkgs.writeText "tmux-theme-light.conf" (theme.renderTmux "light");
};
mkScript = {
mkScript =
{
file,
name,
runtimeInputs ? [],
replacements ? {},
runtimeInputs ? [ ],
replacements ? { },
}:
pkgs.writeShellApplication {
inherit name runtimeInputs;
@ -27,7 +29,7 @@
ga = mkScript {
name = "ga";
file = ./ga.sh;
runtimeInputs = with pkgs; [git];
runtimeInputs = with pkgs; [ git ];
};
ghpr = mkScript {
@ -71,7 +73,7 @@
ni = mkScript {
name = "ni";
file = ./ni.sh;
runtimeInputs = with pkgs; [nix];
runtimeInputs = with pkgs; [ nix ];
};
theme = mkScript {
@ -115,7 +117,11 @@
wt = mkScript {
name = "wt";
file = ./wt.sh;
runtimeInputs = with pkgs; [coreutils git gnused];
runtimeInputs = with pkgs; [
coreutils
git
gnused
];
};
wt-create = mkScript {
@ -123,8 +129,15 @@
file = ./wt-create.sh;
};
};
in {
inherit commonPackages darwinPackages nettyPackages theme tmuxConfigs;
in
{
inherit
commonPackages
darwinPackages
nettyPackages
theme
tmuxConfigs
;
packages = commonPackages;
}