Move top-level module example up in readme, update commit

This commit is contained in:
Reinout Meliesie 2025-03-04 13:20:42 +01:00
parent f91196c8a4
commit 0a5595cea8
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -31,7 +31,18 @@ Not present for all packages.
> You should replace the commits here with the latest one, or whichever one you want to use.
> The hashes will of course differ.
Using a specific package:
Using the top-level NixOS module:
```nix
imports = [
( fetchTarball {
url = "https://kernelmaft.com/forgejo/zedfrigg/nix-packages/archive/f91196c8a4a3ba6953c85b94ea75dee5e331548f.tar.gz" ;
sha256 = "sha256:1wx7ljabgndandcd11jmr590jfpkhs55mqrgksf24ji90m37wpq0" ;
} + "/nixos-module.nix" )
] ;
```
Using a specific package expression:
```nix
pkgs . callPackage ( import ( pkgs . fetchurl {
@ -39,14 +50,3 @@ pkgs . callPackage ( import ( pkgs . fetchurl {
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" ;
} ) ) {}
```
Using the NixOS module:
```nix
imports = [
( fetchTarball {
url = "https://kernelmaft.com/forgejo/zedfrigg/nix-packages/archive/432123bb0984dd766c16ac06b7e3ef4cfee36145.tar.gz" ;
sha256 = "sha256:1wx7ljabgndandcd11jmr590jfpkhs55mqrgksf24ji90m37wpq0" ;
} + "/nixos-module.nix" )
] ;
```