added custom nix package
This commit is contained in:
@@ -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
|
||||
|
||||
10
home-manager/commands/custom/build.nix
Normal file
10
home-manager/commands/custom/build.nix
Normal 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
|
||||
12
home-manager/commands/custom/custom.nix
Normal file
12
home-manager/commands/custom/custom.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
pkgs,
|
||||
hostname,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(import ./sage.nix)
|
||||
];
|
||||
|
||||
}
|
||||
27
home-manager/commands/custom/sage.nix
Normal file
27
home-manager/commands/custom/sage.nix
Normal 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; [ ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
prismlauncher
|
||||
protonplus
|
||||
protonup-qt
|
||||
putty
|
||||
pwninit
|
||||
pwntools
|
||||
qFlipper
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user