Files
nix/modules/home-manager/packages/nixx.nix
Gustavo "Guz" L. de Mello 99b1cbec6b chore: format the code
2024-04-08 16:37:51 -03:00

19 lines
298 B
Nix

{pkgs, ...}: let
nixx = pkgs.writeShellScriptBin "nixx" ''
# npx-like command for nix
function nix-run() {
local pkg="$1"
nix run "nixpkgs#$pkg"
}
nix-run $1
'';
in {
imports = [];
options.nixx = {};
config = {
home.packages = [
nixx
];
};
}