added custom nix package

This commit is contained in:
2025-08-28 20:40:47 -07:00
parent deec6c6001
commit 22bb58825f
7 changed files with 61 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
{ {
imports = [ imports = [
./direnv.nix ./direnv.nix
./custom/custom.nix
./eza.nix ./eza.nix
./fastfetch/fastfetch.nix ./fastfetch/fastfetch.nix
./git.nix ./git.nix
@@ -24,11 +25,13 @@
age-plugin-yubikey age-plugin-yubikey
agedu agedu
bat bat
b3sum
btop btop
cbonsai cbonsai
curl curl
dig dig
dust dust
esptool
fd fd
ffmpeg-full ffmpeg-full
fzf fzf
@@ -39,11 +42,11 @@
lazygit lazygit
nmap nmap
ocamlPackages.utop ocamlPackages.utop
# opencode opencode
openconnect openconnect
openssl openssl
putty
ripgrep ripgrep
sage
tailscale tailscale
termusic termusic
timg timg

View File

@@ -0,0 +1,10 @@
# build.nix
let
# Import your nixpkgs channel. The <> syntax finds it automatically.
pkgs = import <nixpkgs> {
# Apply your overlay here
overlays = [ (import ./sage.nix) ];
};
in
# This file now evaluates to exactly one thing: the sage package.
pkgs.sage

View File

@@ -0,0 +1,12 @@
{
pkgs,
hostname,
...
}:
{
nixpkgs.overlays = [
(import ./sage.nix)
];
}

View File

@@ -0,0 +1,27 @@
final: prev: {
# We are adding a package named 'sage' to the package set
sage = prev.rustPlatform.buildRustPackage rec {
pname = "sage";
version = "0.1.0";
src = prev.fetchFromGitHub {
owner = "Rogue-King";
repo = "sage";
rev = "v${version}";
sha256 = "sha256-YPVxx2s3Q4F+Egtm28SsUY4x1JLRA4lW08v6mEaCLTw=";
};
# Placeholder hash for cargo dependencies - the build will tell you the correct one.
cargoHash = "sha256-5zM0NJjtj+4DAO4o3/1c6D69L2sraO2yWHtrsvrr1Og=";
#cargoLock.lockFile = ./Cargo.lock;
meta = with prev.lib; {
description = "A tool for elegant mathematics";
homepage = "https://github.com/Rogue-King/sage";
license = licenses.mit;
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
maintainers = with maintainers; [ ];
};
};
}

View File

@@ -34,6 +34,7 @@
cursor-invert-fg-bg = true; cursor-invert-fg-bg = true;
keybind = [ keybind = [
"global:cmd+grave_accent=toggle_quick_terminal"
"super+shift+k=new_split:down" "super+shift+k=new_split:down"
"super+shift+l=new_split:right" "super+shift+l=new_split:right"
"super+shift+x=close_window" "super+shift+x=close_window"

View File

@@ -42,6 +42,7 @@
prismlauncher prismlauncher
protonplus protonplus
protonup-qt protonup-qt
putty
pwninit pwninit
pwntools pwntools
qFlipper qFlipper

View File

@@ -71,8 +71,12 @@
homebrew = { homebrew = {
enable = true; enable = true;
onActivation.autoUpdate = true; user = "rogueking";
#onActivation.autoUpdate = true;
brews = [ brews = [
"docker"
"esptool"
"huggingface-cli"
"putty" "putty"
]; ];
casks = [ casks = [
@@ -80,7 +84,6 @@
"1password-cli" "1password-cli"
"blender" "blender"
"brave-browser" "brave-browser"
"docker"
"ghostty" "ghostty"
"imhex" "imhex"
"jellyfin-media-player" "jellyfin-media-player"