A CLI tool for searching options in Nix, written in Go.
There are several ways you can install OptiNix.
Add optinix as an input to your flake, in your flake.nix
file
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
optinix.url = "gitlab:hmajid2301/optinix";
};
outputs = {};
}
Then you can install the package in your nix config like in a devShell
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
optinix.url = "gitlab:hmajid2301/optinix";
};
outputs = {
self,
nixpkgs,
flake-utils,
optinix,
...
}: (
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
optinix.packages.${system}.default
];
};
})
);
}
You can install using go
go install gitlab.com/hmajid2301/optinix
You can install this package from nixpkgs.
nix-shell -p optinix
optinix -v
optinix hyprland
nix run 'gitlab.com/hmajid2301/optinix' hyprland
- NixOS
- Home Manager
- Darwin
- Manix: https://github.com/nix-community/manix
- When I started this project back last year, this project was not working but has since been fixed and had new features added