commit | 263414aa2133e4ac3de62f9028ff047db8a4f3e4 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Thu Jan 26 00:42:50 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Feb 26 13:09:27 2023 +0000 |
tree | 4c79bf3b9c03532100050ce27ee1a50c602a6512 | |
parent | 2faa870ce4df9d3095ba429dd8c0f377eb5867af [diff] |
Persist .nix-package-search to avoid constant re-indexing
diff --git a/modules/nix-package-search.nix b/modules/nix-package-search.nix new file mode 100644 index 0000000..6ee0f9b --- /dev/null +++ b/modules/nix-package-search.nix
@@ -0,0 +1,5 @@ +{ nps, system, username, ... }: { + config.environment.persistence."/nix/persist".users.${username}.directories = + [ ".nix-package-search" ]; + home.home.packages = [ nps.defaultPackage.${system} ]; +}