Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrumplex/pkgs
Nix packages and expressions
https://github.com/scrumplex/pkgs
home-manager nix nix-expressions nix-flake nixos nixpkgs
Last synced: 3 months ago
JSON representation
Nix packages and expressions
- Host: GitHub
- URL: https://github.com/scrumplex/pkgs
- Owner: Scrumplex
- License: gpl-3.0
- Created: 2023-08-03T20:05:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-28T07:37:53.000Z (3 months ago)
- Last Synced: 2024-09-28T09:04:07.287Z (3 months ago)
- Topics: home-manager, nix, nix-expressions, nix-flake, nixos, nixpkgs
- Language: Nix
- Homepage:
- Size: 305 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkgs
Nix packages and expressions
## Usage
Add `github:Scrumplex/pkgs` to your flake inputs:
```nix
inputs = {
# ...
scrumpkgs = {
url = "github:Scrumplex/pkgs";
#inputs.nixpkgs.follows = "nixpkgs";
#inputs.pre-commit-hooks.follows = "pre-commit-hooks";
};
};
```### Apply overlay (NixOS)
```nix
# assumes that your flake `inputs` are in your NixOS specialArgs
{inputs, ...}:
{
nixpkgs.overlays = [inputs.scrumpkgs.overlays.default];
}
```### Add NixOS modules
```nix
# assumes that your flake `inputs` are in your NixOS specialArgs
{inputs, ...}:
{
# monado is an example here
imports = [inputs.scrumpkgs.nixosModules.monado];
}
```### Add Home Manager modules (using HM NixOS module)
```nix
# assumes that your flake `inputs` are in your NixOS specialArgs
{inputs, ...}:
{
# pipewire is an example here
home-manager.sharedModules = [inputs.scrumpkgs.hmModules.pipewire];
}
```## Tips & Tricks
### Add all NixOS/HM modules
```nix
# assumes that your flake `inputs` are in your NixOS specialArgs
{inputs, ...}:
{
imports = builtins.attrValues inputs.scrumpkgs.nixosModules;home-manager.sharedModules = builtins.attrValues inputs.scrumpkgs.hmModules;
}
```