zimeg / nur-packages

some extras to the nixpkgs
https://nur.nix-community.org/repos/zimeg/
MIT License
0 stars 0 forks source link

🚲 nur-packages

My personal NUR repository

Build and populate cache

📬 nur-packages.{#using}

Contained contents can be included in other expressions using a package import.

🗄️ nur-packages.{#cachix}

Compiled binaries and built results can be downloaded using cache:

$ cachix use zimeg

❄️ nur-packages.{#flakes}

Custom packages can be added to flakes using custom package input:

{
  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    zimeg.url = "github:zimeg/nur-packages";
  };
  outputs = { nixpkgs, flake-utils, zimeg, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
        };
      in
      {
        devShell = pkgs.mkShell {
          buildInputs = [
            zimeg.packages.${pkgs.system}.etime
          ];
        };
      });
}

🏠 nur-packages.{#home-manager}

Custom paths can change packaged contents in various combinations:

{ config, pkgs, ... }:
let
  zimeg = import (builtins.fetchTarball "https://github.com/zimeg/nur-packages/archive/main.tar.gz") {};
in
{
  programs.home-manager.enable = true;
  programs.home-manager.path = "$HOME/programming/nix/home-manager";
  programs.zsh = {
    enable = true;
    plugins = [
      {
        name = "wd";
        src = zimeg.zsh-wd;
        file = "share/wd/wd.plugin.zsh";
        completions = [ "share/zsh/site-functions" ];
      }
    ];
  }
}