Skip to content

hmajid2301/OptiNix

Repository files navigation

Logo

OptiNix

A CLI tool for searching options in Nix, written in Go.

Demo

Demo

Install

There are several ways you can install OptiNix.

Nix flakes

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
        ];
      };
    })
  );
}

Go

You can install using go

go install gitlab.com/hmajid2301/optinix

Nix (Coming Soon!!!)

You can install this package from nixpkgs.

nix-shell -p optinix

optinix -v

Usage

optinix hyprland

Nix with flakes

nix run 'gitlab.com/hmajid2301/optinix' hyprland

Supported Sources

  • NixOS
  • Home Manager
  • Darwin

Inspired By

About

A CLI tool written in go, for searching options in Nix. Mirrored from https://gitlab.com/hmajid2301/optinix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published