Compare commits

...

2 Commits

Author SHA1 Message Date
xenia 6dae849266 pin nixpkgs 24.05 2024-10-21 21:44:33 -04:00
xenia 8ae77094e6 update readme 2024-10-21 21:44:22 -04:00
3 changed files with 33 additions and 23 deletions

View File

@ -11,39 +11,49 @@ upstreaming into nixpkgs if there is sufficient interest
## usage
dragnpkgs provides a set of nixos modules and a nixpkgs overlay containing custom packages
(automatically applied). to use, import the top-level module into your system configuration, eg
dragnpkgs provides a set of nixos modules and a nixpkgs overlay containing custom packages. the
modules require the overlay
### non-flake
```nix
{config, lib, pkgs, ...}:
{
imports = [
path/to/dragnpkgs
/path/to/dragnpkgs/module.nix
];
}
```
alternatively, add it as a nix channel
```bash
nix-channel --add https://git.lain.faith/haskal/dragnpkgs/archive/main.tar.gz dragnpkgs
```
then in system config
```nix
{config, lib, pkgs, ...}:
{
imports = [
<dragnpkgs>
];
nixpkgs.overlays = [ (import /path/to/dragnpkgs/overlay.nix) ];
}
```
for standalone nix on other distros, use `~/.config/nixpkgs/overlays.nix` to enable the dragnpkgs
overlay
```nix
(import <dragnpkgs> {}).nixpkgs.overlays
[ (import <dragnpkgs/overlay.nix>) ]
```
### flake
for flake usage, point your `nixpkgs` to this repo
```nix
{
inputs = {
# for nixos-24.05
nixpkgs.url = "git+https://git.lain.faith/haskal/dragnpkgs.git?ref=nixos-24.05";
# for nixos-unstable
nixpkgs.url = "git+https://git.lain.faith/haskal/dragnpkgs.git?ref=main";
};
}
```
note that overriding inputs to the flake won't necessarily work because of the way nixpkgs registers
itself with the system. this requires really annoying hacks to get working at all. if you want to
depend on `dragnpkgs` with a different version of `nixpkgs` (ie not 24.05 or unstable), clone the
repo and recreate `flake.lock`. aren't flakes so cool and fun!!!!
## options documentation
documentation for options provided by dragnpkgs

View File

@ -30,16 +30,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1729256560,
"narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"lastModified": 1729307008,
"narHash": "sha256-QUvb6epgKi9pCu9CttRQW4y5NqJ+snKr1FZpG/x3Wtc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"rev": "a9b86fc2290b69375c5542b622088eb6eca2a7c3",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -2,7 +2,7 @@
description = "dragnpkgs together with nixpkgs and lix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";