Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aldoborrero/mynixpkgs
My custom repository of nixpkgs that I plan to either upstream to NixOS/nixpkgs or keep here as they don't make sense to share.
https://github.com/aldoborrero/mynixpkgs
flakes nix nixpkgs nixpkgs-overlay
Last synced: 3 months ago
JSON representation
My custom repository of nixpkgs that I plan to either upstream to NixOS/nixpkgs or keep here as they don't make sense to share.
- Host: GitHub
- URL: https://github.com/aldoborrero/mynixpkgs
- Owner: aldoborrero
- License: mit
- Created: 2023-11-06T13:18:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T10:05:36.000Z (4 months ago)
- Last Synced: 2024-09-28T09:03:54.877Z (4 months ago)
- Topics: flakes, nix, nixpkgs, nixpkgs-overlay
- Language: Nix
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mynixpkgs
My custom repository of my `nixpkgs` that I plan to either upstream to `nixpkgs` or keep here as they don't make sense to share.
It follows the regular conventions of `nixpkgs` (specially following the conventions defined in their [named based package directories](https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name)).
## Usage
### Flakes
You can add my `pkgs` repository as a regular flake input:
```nix
{
inputs = {
mynixpkgs = {
url = "github:aldoborrero/mypkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
```And use it as a regular flake input to access it's packages as a regular flake input or add them to your `nixpkgs` as an overlay:
```nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/23.11";
mynixpkgs = {
url = "github:aldoborrero/mynixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
};outputs = inputs @ { self, mynixpkgs, nixpkgs, ... }: let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
# add packages via the default overlay
mynixpkgs.overlays.default
];
};in {
nixosConfigurations.my-system = nixpkgs.lib.nixosSystem {
inherit system pkgs;
modules = [
# optional: add nixos modules via the default nixosModule
mynixpkgs.nixosModules.default
];
};
};
}
```### Niv
Thanks to `flake-compat` you can also use this repository without flakes! Make sure you import it with:
```console
$ niv add aldoborrero/mypkgs
```And add the overlay to your `nixpkgs` import with `niv`:
```console
{system ? builtins.currentSystem}: let
sources = import ./sources.nix;# overlays
mynixpkgs = import sources.mynixpkgs;
in
import sources.nixpkgs {
inherit system;
config.allowUnfree = true;
overlays =
[
mynixpkgs.overlays.default
];
}
```## License
See [License](./LICENSE) for more information.