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 = [
./direnv.nix
./custom/custom.nix
./eza.nix
./fastfetch/fastfetch.nix
./git.nix
@@ -24,11 +25,13 @@
age-plugin-yubikey
agedu
bat
b3sum
btop
cbonsai
curl
dig
dust
esptool
fd
ffmpeg-full
fzf
@@ -39,11 +42,11 @@
lazygit
nmap
ocamlPackages.utop
# opencode
opencode
openconnect
openssl
putty
ripgrep
sage
tailscale
termusic
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;
keybind = [
"global:cmd+grave_accent=toggle_quick_terminal"
"super+shift+k=new_split:down"
"super+shift+l=new_split:right"
"super+shift+x=close_window"

View File

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

View File

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