added custom nix package
This commit is contained in:
@@ -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
|
||||||
|
|||||||
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;
|
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"
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
prismlauncher
|
prismlauncher
|
||||||
protonplus
|
protonplus
|
||||||
protonup-qt
|
protonup-qt
|
||||||
|
putty
|
||||||
pwninit
|
pwninit
|
||||||
pwntools
|
pwntools
|
||||||
qFlipper
|
qFlipper
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user