diff --git a/home-manager/commands/commands.nix b/home-manager/commands/commands.nix index aa233f5..b05120b 100644 --- a/home-manager/commands/commands.nix +++ b/home-manager/commands/commands.nix @@ -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 diff --git a/home-manager/commands/custom/build.nix b/home-manager/commands/custom/build.nix new file mode 100644 index 0000000..13d26fe --- /dev/null +++ b/home-manager/commands/custom/build.nix @@ -0,0 +1,10 @@ +# build.nix +let + # Import your nixpkgs channel. The <> syntax finds it automatically. + pkgs = import { + # Apply your overlay here + overlays = [ (import ./sage.nix) ]; + }; +in +# This file now evaluates to exactly one thing: the sage package. +pkgs.sage diff --git a/home-manager/commands/custom/custom.nix b/home-manager/commands/custom/custom.nix new file mode 100644 index 0000000..801356c --- /dev/null +++ b/home-manager/commands/custom/custom.nix @@ -0,0 +1,12 @@ +{ + pkgs, + hostname, + ... +}: + +{ + nixpkgs.overlays = [ + (import ./sage.nix) + ]; + +} diff --git a/home-manager/commands/custom/sage.nix b/home-manager/commands/custom/sage.nix new file mode 100644 index 0000000..9649ddb --- /dev/null +++ b/home-manager/commands/custom/sage.nix @@ -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; [ ]; + }; + }; +} diff --git a/home-manager/programs/ghostty/ghostty.nix b/home-manager/programs/ghostty/ghostty.nix index f80ce71..d5e02fe 100644 --- a/home-manager/programs/ghostty/ghostty.nix +++ b/home-manager/programs/ghostty/ghostty.nix @@ -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" diff --git a/home-manager/programs/programs.nix b/home-manager/programs/programs.nix index b0ba7d3..4e8c963 100644 --- a/home-manager/programs/programs.nix +++ b/home-manager/programs/programs.nix @@ -42,6 +42,7 @@ prismlauncher protonplus protonup-qt + putty pwninit pwntools qFlipper diff --git a/hosts/eva-02/configuration.nix b/hosts/eva-02/configuration.nix index 1036593..7ff32c6 100644 --- a/hosts/eva-02/configuration.nix +++ b/hosts/eva-02/configuration.nix @@ -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"