2024-05-13 23:18:54 -04:00
|
|
|
{
|
2024-06-29 06:25:49 -04:00
|
|
|
aaru,
|
2024-05-13 23:18:54 -04:00
|
|
|
agenix,
|
|
|
|
pkgs,
|
|
|
|
system,
|
|
|
|
xil,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-18 01:50:05 -04:00
|
|
|
let
|
|
|
|
|
2024-05-18 03:31:06 -04:00
|
|
|
# Especially for dotnet packages, remember to update "/flake.nix" too!
|
2024-05-18 01:50:05 -04:00
|
|
|
my_packages = {
|
2024-06-15 02:59:30 -04:00
|
|
|
binaryobjectscanner = pkgs.callPackage ./packages/binaryobjectscanner/package.nix {};
|
2024-07-06 04:01:47 -04:00
|
|
|
hactoolnet-bin = pkgs.callPackage ./packages/hactoolnet-bin/package.nix {};
|
2024-05-18 17:47:43 -04:00
|
|
|
ird_tools = pkgs.callPackage ./packages/ird_tools/package.nix {};
|
2024-06-15 02:59:30 -04:00
|
|
|
irdkit = pkgs.callPackage ./packages/irdkit/package.nix {};
|
2024-07-06 03:59:17 -04:00
|
|
|
nxtik = pkgs.callPackage ./packages/nxtik/package.nix {};
|
2024-05-18 17:47:43 -04:00
|
|
|
ps3dec = pkgs.callPackage ./packages/ps3dec/package.nix {};
|
|
|
|
rom-properties = pkgs.callPackage ./packages/rom-properties/package.nix {};
|
2024-06-15 02:59:30 -04:00
|
|
|
sabretools = pkgs.callPackage ./packages/sabretools/package.nix {};
|
2024-06-04 05:24:03 -04:00
|
|
|
# rom-properties_ninja = pkgs.callPackage ./package.nix { useNinja = true; };
|
|
|
|
# rom-properties_gtracker = pkgs.callPackage ./package.nix { useTracker = true; };
|
|
|
|
# rom-properties_ninja_gtracker = pkgs.callPackage ./package.nix { useNinja = true; useTracker = true; };
|
2024-05-28 23:43:52 -04:00
|
|
|
new_rclone = pkgs.rclone.overrideAttrs (oldAttrs: rec {
|
|
|
|
patches = [ ./packages/new_rclone/patches/rclone_8ffe3e462cbf5688c37c54009db09d8dcb486860.diff ];
|
|
|
|
}
|
|
|
|
);
|
2024-07-20 04:40:23 -04:00
|
|
|
nix-init_packagenix = pkgs.nix-init.overrideAttrs (oldAttrs: rec {
|
|
|
|
patches = [ ./packages/nix-init/default_to_package.diff ];
|
|
|
|
}
|
|
|
|
);
|
2024-06-09 05:05:25 -04:00
|
|
|
unnix_script = pkgs.writeShellApplication {
|
|
|
|
name = "unnix";
|
|
|
|
/* runtimeInputs = [ sed ]; */
|
2024-06-13 23:31:30 -04:00
|
|
|
text = '' sed -r 's@/nix/store/[0-9a-z]{32}-@/<nix store path>/@g' '';
|
2024-06-09 05:05:25 -04:00
|
|
|
# Quick command to remove Nix Store paths from output. Original source:
|
|
|
|
# https://trofi.github.io/posts/247-NixOS-22.05-release.html
|
|
|
|
};
|
2024-05-18 01:50:05 -04:00
|
|
|
};
|
|
|
|
in
|
2024-05-13 23:18:54 -04:00
|
|
|
{
|
|
|
|
programs = {
|
|
|
|
bat = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
2024-05-19 03:40:51 -04:00
|
|
|
enableZshIntegration = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableFishIntegration = false;
|
|
|
|
enableNushellIntegration = false;
|
2024-05-19 05:23:39 -04:00
|
|
|
# loadInNixShell = true;
|
2024-05-13 23:18:54 -04:00
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Whovian9369";
|
|
|
|
userEmail = "Whovian9369@gmail.com";
|
|
|
|
extraConfig = {
|
|
|
|
init = {
|
|
|
|
defaultBranch = "main";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
jq = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
nix-index = {
|
2024-05-20 20:05:35 -04:00
|
|
|
enable = true;
|
2024-06-14 16:48:08 -04:00
|
|
|
enableZshIntegration = true;
|
2024-05-20 20:05:35 -04:00
|
|
|
enableBashIntegration = false;
|
|
|
|
enableFishIntegration = false;
|
2024-05-13 23:18:54 -04:00
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
ripgrep = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-05-14 04:23:11 -04:00
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
# Honestly unsure if I should be using `programs.zsh.envExtra` or
|
|
|
|
# `programs.zsh.localVariables` here.
|
|
|
|
localVariables = {
|
|
|
|
DISABLE_MAGIC_FUNCTIONS = true;
|
|
|
|
};
|
|
|
|
# enableAutosuggestions = true;
|
|
|
|
# enableCompletion = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
"git"
|
|
|
|
"sudo"
|
|
|
|
];
|
|
|
|
theme = "bira";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-14 04:23:11 -04:00
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
|
|
|
|
2024-05-13 23:18:54 -04:00
|
|
|
home.packages = [
|
|
|
|
pkgs._7zz
|
|
|
|
pkgs.bat
|
|
|
|
pkgs.binwalk
|
|
|
|
pkgs.cdecrypt
|
|
|
|
pkgs.colorized-logs
|
|
|
|
pkgs.croc
|
|
|
|
pkgs.dhex
|
2024-06-18 18:42:30 -04:00
|
|
|
pkgs.doctl
|
2024-05-13 23:18:54 -04:00
|
|
|
pkgs.fd
|
2024-07-02 02:31:52 -04:00
|
|
|
pkgs.fq
|
2024-05-13 23:18:54 -04:00
|
|
|
pkgs.file
|
|
|
|
pkgs.gdrive3
|
|
|
|
pkgs.git
|
|
|
|
pkgs.hactool
|
|
|
|
pkgs.instaloader
|
|
|
|
pkgs.internetarchive
|
|
|
|
pkgs.lynx
|
|
|
|
pkgs.megatools
|
|
|
|
pkgs.ncdu
|
2024-07-01 03:20:59 -04:00
|
|
|
pkgs.ndstool
|
2024-05-13 23:18:54 -04:00
|
|
|
pkgs.nixfmt-classic
|
2024-07-23 05:22:25 -04:00
|
|
|
# nixfmt was renamed to nixfmt-classic.
|
|
|
|
# The nixfmt attribute may be used for the new RFC 166-style formatter in the future, which is currently available as nixfmt-rfc-style
|
2024-05-13 23:18:54 -04:00
|
|
|
pkgs.progress
|
|
|
|
pkgs.pyrosimple
|
|
|
|
pkgs.python3
|
2024-07-02 02:31:52 -04:00
|
|
|
pkgs.python3Packages.nsz
|
2024-05-13 23:18:54 -04:00
|
|
|
pkgs.quickbms
|
|
|
|
pkgs.sshfs
|
|
|
|
pkgs.unrar-wrapper
|
|
|
|
pkgs.wget
|
|
|
|
pkgs.xxd
|
|
|
|
pkgs.yq
|
|
|
|
|
2024-06-15 02:59:30 -04:00
|
|
|
my_packages.binaryobjectscanner
|
2024-05-18 01:50:05 -04:00
|
|
|
my_packages.ird_tools
|
2024-06-15 02:59:30 -04:00
|
|
|
my_packages.irdkit
|
2024-05-28 23:43:52 -04:00
|
|
|
my_packages.new_rclone
|
2024-07-20 04:40:23 -04:00
|
|
|
my_packages.nix-init_packagenix # Yay for patched apps :)
|
2024-07-06 04:02:38 -04:00
|
|
|
my_packages.nxtik
|
2024-06-15 02:59:30 -04:00
|
|
|
my_packages.ps3dec
|
2024-05-31 04:42:30 -04:00
|
|
|
my_packages.rom-properties
|
2024-06-15 02:59:30 -04:00
|
|
|
my_packages.sabretools
|
|
|
|
my_packages.unnix_script # It's a one-line bash script
|
2024-05-29 16:33:52 -04:00
|
|
|
# my_packages.hactoolnet-bin
|
2024-05-13 23:18:54 -04:00
|
|
|
|
|
|
|
agenix.packages.${system}.default
|
|
|
|
xil.packages.${system}.xil
|
2024-06-29 06:25:49 -04:00
|
|
|
aaru.packages.${system}.git
|
2024-05-13 23:18:54 -04:00
|
|
|
];
|
|
|
|
|
2024-05-14 06:02:59 -04:00
|
|
|
# Disabled Packages
|
2024-05-13 23:18:54 -04:00
|
|
|
/*
|
2024-05-14 06:02:59 -04:00
|
|
|
pkgs.binutils
|
|
|
|
# Just use "nix shell nixpkgs#binutils -c strings -- INPUT"
|
|
|
|
pkgs.mpv
|
|
|
|
# Not needed on WSL
|
|
|
|
pkgs.p7zip
|
|
|
|
# Replaced in favour of nixpkgs#_7zz
|
2024-05-29 16:33:52 -04:00
|
|
|
pkgs.rclone
|
2024-05-29 21:48:50 -04:00
|
|
|
# Replaced with my_packages.new_rclone which is a patched build.
|
2024-06-02 02:08:46 -04:00
|
|
|
pkgs.screen
|
2024-06-05 21:10:42 -04:00
|
|
|
# Replaced with System-set "programs.screen.enable"
|
2024-05-14 06:02:59 -04:00
|
|
|
pkgs.terminator
|
|
|
|
# Not needed on WSL, even though I'd like it on WSL sometimes.
|
|
|
|
pkgs.yt-dlp
|
|
|
|
# Not needed on WSL
|
2024-05-29 21:48:50 -04:00
|
|
|
my_packages.hactoolnet-bin
|
|
|
|
# Not needed on WSL as I currently use the Windows version.
|
2024-05-13 23:18:54 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
# It is sometimes useful to fine-tune packages, for example, by applying
|
|
|
|
# overrides. You can do that directly here, just don't forget the
|
2024-05-14 04:23:11 -04:00
|
|
|
# parentheses.
|
|
|
|
# Maybe you want to install Nerd Fonts with a limited number of fonts?
|
|
|
|
(pkgs.nerdfonts.override {
|
|
|
|
fonts = [
|
|
|
|
"FantasqueSansMono"
|
|
|
|
];
|
|
|
|
})
|
2024-05-13 23:18:54 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
}
|