Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e81512c68 | ||
|
|
c445f239aa | ||
|
|
735bb46016 |
No files matched your search
@@ -16,6 +16,7 @@ Managed via Home Manager (`home.nix`). Applied using `./apply.sh`.
|
||||
**CLI Utilities**
|
||||
- `neovim` - Editor
|
||||
- `git`, `lazygit` - Version control
|
||||
- `but` - GitButler CLI (`pkgs/but.nix`, pinned; bump version/hashes by hand)
|
||||
- `ripgrep` (`rg`), `fd` - Fast search
|
||||
- `pay-respects` - Command correction (`f`)
|
||||
- `sops`, `age` - Secret management
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "=> Ensuring local config stubs exist..."
|
||||
touch ~/.local_env.nu ~/.local.nu
|
||||
|
||||
echo "=> Running smoke test on Nushell config..."
|
||||
nu -c "source ~/.dotfiles/config/nushell/env.nu; source ~/.dotfiles/config/nushell/config.nu" || {
|
||||
echo "Smoke test failed! Fix Nushell config errors before applying."
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "=> Smoke test passed. Applying home-manager configuration..."
|
||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
||||
TARGET="mac"
|
||||
else
|
||||
TARGET="linux"
|
||||
fi
|
||||
home-manager switch --flake .#$TARGET -b "backup-$(date +%s)"
|
||||
echo "=> Done."
|
||||
@@ -75,6 +75,7 @@ alias ag = ast-grep
|
||||
alias zdev = zellij --layout yazineo
|
||||
alias zterm = zellij --layout terminal
|
||||
alias bt = but tui
|
||||
alias spf = superfile
|
||||
|
||||
if ( which task | is-empty ) {
|
||||
alias task = go tool task
|
||||
|
||||
@@ -8,7 +8,7 @@ path add ~/go/bin
|
||||
path add ~/.local/share/bob/nvim-bin
|
||||
path add ~/.nix-profile/bin
|
||||
|
||||
$env.SHELL = '/usr/bin/nu'
|
||||
$env.SHELL = which nu
|
||||
$env.ZELLIJ_SOCKET_DIR = '/tmp/zellij'
|
||||
$env.RAINFROG_CONFIG = '~/.config/rainfrog'
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# More details are at https://superfile.netlify.app/configure/superfile-config/
|
||||
#
|
||||
# change your theme
|
||||
theme = 'catppuccin'
|
||||
#
|
||||
# The editor files will be opened with. (Leave blank to use the EDITOR environment variable).
|
||||
editor = "nvim"
|
||||
#
|
||||
# The editor directories will be opened with. (Leave blank to use the default editors).
|
||||
dir_editor = ""
|
||||
#
|
||||
# Auto check for update
|
||||
auto_check_update = true
|
||||
#
|
||||
# Cd on quit (For more details, please check out https://superfile.netlify.app/configure/superfile-config/#cd_on_quit)
|
||||
cd_on_quit = false
|
||||
#
|
||||
# Whether to open file preview automatically every time superfile is opened.
|
||||
default_open_file_preview = true
|
||||
#
|
||||
# Whether to show image preview
|
||||
show_image_preview = true
|
||||
#
|
||||
#
|
||||
# Whether to hide additional footer info for file panel.
|
||||
show_panel_footer_info = true
|
||||
#
|
||||
# The path of the first file panel when superfile is opened.
|
||||
default_directory = "."
|
||||
#
|
||||
# Display file sizes using powers of 1000 (kB, MB, GB) instead of powers of 1024 (KiB, MiB, GiB).
|
||||
file_size_use_si = false
|
||||
#
|
||||
# Default sort type (0: Name, 1: Size, 2: Date Modified, 3: Type).
|
||||
default_sort_type = 0
|
||||
#
|
||||
# Default sort order (false: Ascending, true: Descending).
|
||||
sort_order_reversed = false
|
||||
#
|
||||
# Case sensitive sort by name (upper "B" comes before lower "a" if true).
|
||||
case_sensitive_sort = false
|
||||
#
|
||||
# Whether to exit the shell on successful command execution.
|
||||
shell_close_on_success = false
|
||||
#
|
||||
# Whether to enable debug mode.
|
||||
debug = false
|
||||
#
|
||||
# Whether to ignore warnings about missing fields in the config file.
|
||||
ignore_missing_fields = false
|
||||
#
|
||||
# ================ Style =================
|
||||
#
|
||||
# Whether to use the builtin syntax highlighting with chroma or use bat. Values: "" for builtin chroma, "bat" for bat
|
||||
code_previewer = ''
|
||||
#
|
||||
# If you don't have or don't want Nerdfont installed you can turn this off
|
||||
nerdfont = true
|
||||
#
|
||||
# Set transparent background or not (this only work when your terminal background is transparent)
|
||||
transparent_background = false
|
||||
#
|
||||
# File preview width allow '0' (this mean same as file panel),'x' x must be from 2 to 10 (This means that the width of the file preview will be one xth of the total width.)
|
||||
file_preview_width = 0
|
||||
#
|
||||
# The length of the sidebar. If you don't want to display the sidebar, you can input 0 directly. If you want to display the value, please place it in the range of 3-20.
|
||||
sidebar_width = 20
|
||||
#
|
||||
# Border style
|
||||
# Make sure to add strings exactly one character wide. Use ' ' for borderless
|
||||
border_top = '─'
|
||||
border_bottom = '─'
|
||||
border_left = '│'
|
||||
border_right = '│'
|
||||
border_top_left = '╭'
|
||||
border_top_right = '╮'
|
||||
border_bottom_left = '╰'
|
||||
border_bottom_right = '╯'
|
||||
border_middle_left = '├'
|
||||
border_middle_right = '┤'
|
||||
#
|
||||
# ========== PLUGINS ========== #
|
||||
# Plugins means that you need to install some external dependencies to use them.
|
||||
#
|
||||
# Show more detailed metadata, please install exiftool before enabling this plugin!
|
||||
metadata = false
|
||||
#
|
||||
# Enable MD5 checksum generation for files
|
||||
enable_md5_checksum = false
|
||||
#
|
||||
# Zoxide support for the fast navigation
|
||||
zoxide_support = true
|
||||
Generated
+99
-1
@@ -66,6 +66,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1767039857,
|
||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-schemas": {
|
||||
"locked": {
|
||||
"lastModified": 1780327564,
|
||||
@@ -80,6 +96,49 @@
|
||||
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.5.0.tar.gz"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gomod2nix": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"superfile",
|
||||
"flake-utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"superfile",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770585520,
|
||||
"narHash": "sha256-yBz9Ozd5Wb56i3e3cHZ8WcbzCQ9RlVaiW18qDYA/AzA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "gomod2nix",
|
||||
"rev": "1201ddd1279c35497754f016ef33d5e060f3da8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "gomod2nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -310,7 +369,8 @@
|
||||
"hyprmod": "hyprmod",
|
||||
"nixcord": "nixcord",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"spicetify": "spicetify"
|
||||
"spicetify": "spicetify",
|
||||
"superfile": "superfile"
|
||||
}
|
||||
},
|
||||
"spicetify": {
|
||||
@@ -332,6 +392,29 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"superfile": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-utils": "flake-utils",
|
||||
"gomod2nix": "gomod2nix",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1790585942,
|
||||
"narHash": "sha256-SKlHQNsm1i4iVLtQNkaRZrxxey/x82PoVN/Fw7j0UJY=",
|
||||
"owner": "yorukot",
|
||||
"repo": "superfile",
|
||||
"rev": "66fe169b87021f7424522ed5aadd711c5676601e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "yorukot",
|
||||
"repo": "superfile",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
@@ -362,6 +445,21 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_3": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
||||
@@ -18,13 +18,31 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spicetify.url = "github:Gerg-L/spicetify-nix";
|
||||
superfile = {
|
||||
url = "github:yorukot/superfile";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, agenix, chaotic, nixcord, hyprmod, spicetify, ... }:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
agenix,
|
||||
chaotic,
|
||||
nixcord,
|
||||
hyprmod,
|
||||
spicetify,
|
||||
superfile,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkHome = system: home-manager.lib.homeManagerConfiguration {
|
||||
mkHome =
|
||||
system:
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
extraSpecialArgs = { inherit hyprmod spicetify; };
|
||||
extraSpecialArgs = { inherit hyprmod spicetify superfile; };
|
||||
modules = [
|
||||
agenix.homeManagerModules.age
|
||||
nixcord.homeModules.nixcord
|
||||
@@ -33,7 +51,8 @@
|
||||
spicetify.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
mac = mkHome "aarch64-darwin";
|
||||
linux = mkHome "x86_64-linux";
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
lib,
|
||||
hyprmod,
|
||||
spicetify,
|
||||
superfile,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -42,6 +43,7 @@
|
||||
starship
|
||||
zoxide
|
||||
lazygit
|
||||
(callPackage ./pkgs/but.nix { })
|
||||
fastfetch
|
||||
eza
|
||||
atuin
|
||||
@@ -62,7 +64,6 @@
|
||||
age
|
||||
devenv
|
||||
pi-coding-agent
|
||||
yazi
|
||||
unzip
|
||||
obsidian
|
||||
htop
|
||||
@@ -71,6 +72,8 @@
|
||||
jellytui
|
||||
nixd
|
||||
nixfmt
|
||||
superfile.packages.${stdenv.hostPlatform.system}.default
|
||||
tokei
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
||||
owncloud-client
|
||||
@@ -85,8 +88,6 @@
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
".config/yazi".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/yazi";
|
||||
".config/zed".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/zed";
|
||||
".config/btop".source =
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
plugins/*
|
||||
flavors/*
|
||||
@@ -1,2 +0,0 @@
|
||||
require("git"):setup()
|
||||
require("starship"):setup()
|
||||
@@ -1,29 +0,0 @@
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "9014ed2"
|
||||
hash = "88e56a64b7ce7c4314427452343fef17"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "ahkohd/eza-preview"
|
||||
rev = "e8fb6c8"
|
||||
hash = "c238595c801caa4f28553b9af8cf8804"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-filter"
|
||||
rev = "9014ed2"
|
||||
hash = "d6f7351ea25a43c9b5f4315fa1e23935"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "Rolv-Apneseth/starship"
|
||||
rev = "159eaba"
|
||||
hash = "7de446280b1ba8c49ffd86dbc24bbbe6"
|
||||
|
||||
[[flavor.deps]]
|
||||
use = "yazi-rs/flavors:catppuccin-mocha"
|
||||
rev = "1a5f787"
|
||||
hash = "7dfe41c9c3d9be76da8a844263d0bbed"
|
||||
|
||||
[[flavor.deps]]
|
||||
use = "yazi-rs/flavors:catppuccin-latte"
|
||||
rev = "1a5f787"
|
||||
hash = "b8f46853c27707115f25f3423a47bd38"
|
||||
@@ -1,2 +0,0 @@
|
||||
[flavor]
|
||||
use = "catppuccin-mocha"
|
||||
@@ -1,15 +0,0 @@
|
||||
[mgr]
|
||||
show_hidden = true
|
||||
show_symlink = true
|
||||
|
||||
[preview]
|
||||
wrap = "yes"
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
url = "*/"
|
||||
run = "eza-preview"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "F"
|
||||
run = "plugin smart-filter"
|
||||
desc = "Smart filter"
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"lastChangelogVersion": "0.85.1",
|
||||
"lastChangelogVersion": "0.99.1",
|
||||
"defaultProvider": "9Router",
|
||||
"defaultModel": "cc/claude-sonnet-5",
|
||||
"extensions": [
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
# GitButler CLI (`but`). nixpkgs `gitbutler` is GUI-only and builds from source.
|
||||
# ponytail: pinned by hand; bump `version`, `build`, and both hashes (see releases JSON at
|
||||
# https://app.gitbutler.com/releases/version/<version>) to upgrade.
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
autoPatchelfHook,
|
||||
dbus,
|
||||
zlib,
|
||||
stdenv,
|
||||
}:
|
||||
let
|
||||
version = "0.22.3";
|
||||
build = "3234";
|
||||
base = "https://releases.gitbutler.com/releases/release/${version}-${build}";
|
||||
isDarwin = stdenvNoCC.hostPlatform.isDarwin;
|
||||
src =
|
||||
if isDarwin then
|
||||
fetchurl {
|
||||
url = "${base}/macos/aarch64/GitButler.app.tar.gz";
|
||||
hash = "sha256-7fD2gMEC/4b67h2RnqKmFm/L5uOpiYZwbJGjju1mL3Q=";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "${base}/linux/x86_64/but";
|
||||
hash = "sha256-P09UOmzNkxzmyGxIQFjb5eKUOVl9AB9qCpwo2eUz6hg=";
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "but";
|
||||
inherit version src;
|
||||
|
||||
sourceRoot = ".";
|
||||
unpackPhase = if isDarwin then "tar xzf $src" else "true";
|
||||
|
||||
nativeBuildInputs = lib.optional (!isDarwin) autoPatchelfHook;
|
||||
buildInputs = lib.optionals (!isDarwin) [
|
||||
dbus
|
||||
zlib
|
||||
stdenv.cc.cc.lib
|
||||
];
|
||||
|
||||
# Re-signing/stripping would break the app's code signature on macOS.
|
||||
dontFixup = isDarwin;
|
||||
|
||||
installPhase =
|
||||
if isDarwin then
|
||||
''
|
||||
mkdir -p $out/Applications $out/bin
|
||||
cp -r GitButler.app $out/Applications/
|
||||
# the app binary acts as the CLI when invoked as `but`
|
||||
ln -s $out/Applications/GitButler.app/Contents/MacOS/gitbutler-tauri $out/bin/but
|
||||
''
|
||||
else
|
||||
''
|
||||
install -Dm755 $src $out/bin/but
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "GitButler CLI";
|
||||
homepage = "https://gitbutler.com";
|
||||
license = lib.licenses.fsl11Mit;
|
||||
mainProgram = "but";
|
||||
platforms = [
|
||||
"aarch64-darwin"
|
||||
"x86_64-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user