diff --git a/nixos-module.nix b/nixos-module.nix index 461ee5f..3dc07ad 100644 --- a/nixos-module.nix +++ b/nixos-module.nix @@ -1,4 +1,4 @@ -{ pkgs } : +{ pkgs , ... } : with pkgs ; diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index bb92e4e..4d9d4d6 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -1,4 +1,4 @@ -{ pkgs } : +{ pkgs , ... } : with pkgs . kernelmaft ; diff --git a/readme.md b/readme.md index a43d834..1d0dbcf 100644 --- a/readme.md +++ b/readme.md @@ -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" ) -] ; -```