Note
This project is a part of SnapCore!
A collection of streamlined shell utilities for NixOS management, package development, and system administration.
rbf(Rebuild Flake): A robust wrapper fornixos-rebuild. It handles automatic git staging, creates atomic commits with system generation numbers, and provides automatic rollback on failure.- Interactive File Finder: Press
Ctrl+Oto search and open files usingfzfandbat. - Nix Development Tools:
nix_pkg_builder: Simple wrapper fornix build.nix_opt: Fastnixos-optioninspection usingnix shell.nix_hash_prefetch: Generate SRI hashes for remote assets.nix_get_attr: Evaluate Nix attributes directly from the CLI.
- System Management:
process_manager: Interactive tool to pause, resume, or kill processes by name or PID.unlock_keyring: Command-line utility to unlock GNOME Keyring or KWallet.
Add this flake to your system configuration to automatically source the helpers and completions in interactive shells:
# flake.nix
{
inputs.nix-helpers.url = "github:snapsettle/nix-helpers";
outputs = { self, nixpkgs, nix-helpers, ... }: {
nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
modules = [
nix-helpers.nixosModules.default
# ... your other modules
];
};
};
}If you aren't using the NixOS module, you can source the script directly in your .bashrc:
source /home/$USER/nix-helpers/shell/helpers.bash