fix(direnv): put the cache in $XDG_CACHE_HOME #627

Merged
jalil merged 1 commit from push-pkpmuksootzt into main 2025-08-15 10:55:08 +02:00
Owner

This prevents me from having to add .direnv to every .gitignore.

This prevents me from having to add `.direnv` to every `.gitignore`.
jalil self-assigned this 2025-08-14 14:56:38 +02:00
fix(direnv): put the cache in $XDG_CACHE_HOME
Some checks failed
/ check-fmt (pull_request) Successful in 8s
/ build-package (audiomenu) (pull_request) Successful in 1s
/ build-package (docs) (pull_request) Successful in 21s
/ build-package (docs-home-markdown) (pull_request) Successful in 1s
/ build-package (docs-nixos-markdown) (pull_request) Successful in 1s
/ build-package (docs-nvim-markdown) (pull_request) Successful in 1s
/ build-package (jpassmenu) (pull_request) Successful in 1s
/ build-package (nvim) (pull_request) Successful in 10s
/ build-package (nvim-headless) (pull_request) Successful in 7s
/ build-package (nvim-no-lsps) (pull_request) Successful in 9s
/ build-package (nvim-no-ts) (pull_request) Successful in 9s
/ build-package (nvim-small) (pull_request) Successful in 8s
/ build-package (search) (pull_request) Successful in 20s
/ check-nvim (nvim) (pull_request) Successful in 6s
/ check-nvim (nvim-headless) (pull_request) Successful in 2s
/ check-nvim (nvim-no-lsps) (pull_request) Successful in 5s
/ check-nvim (nvim-no-ts) (pull_request) Successful in 6s
/ check-nvim (nvim-small) (pull_request) Successful in 5s
/ build-vm (pull_request) Successful in 26s
/ build-hm (pull_request) Successful in 14s
/ report-size (pull_request) Failing after 1s
45f0eda1c5
This prevents me from having to add `.direnv` to every `.gitignore`.
jalil force-pushed push-pkpmuksootzt from 45f0eda1c5 to d001a410dd 2025-08-15 10:50:28 +02:00 Compare

Flake output sizes

Definitions
  • Name: the name of the package/configuration.
  • Size: the closure size (size on disk/NAR size + all transitive dependencies).
  • NAR Size: the size of the build output (package without the dependencies).
  • [NAR] Size Change: the amount changed compared to the main branch.
Tips on reading this data
  • For NixOS/Home-Manager configurations you generally care only about the Size (closure size/size on disk).
    • Reduce the Size by disabling unneeded services/default packages.
  • For Packages you care about both the Size and the NAR Size.
    • Reduce the NAR Size by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc.
    • Reduce the Size by reducing the dependencies (e.g. buildInputs).
    • Don't worry too much about size, some dependencies are deduplicated, e.g. glibc adds ~40MiB to the Size, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. musl is not gonna improve things.

NixOS Configurations

Name Size Size Change NAR Size NAR Size Change
vm 12GiB 680B 19KiB 0B

Home Manager Configurations

Name Size Size Change NAR Size NAR Size Change
example 3.9GiB 680B 18KiB 0B

Packages

Name Size Size Change NAR Size NAR Size Change
audiomenu 173MiB 0B 7.3KiB 0B
docs 3.1MiB -39KiB 3.1MiB -39KiB
docs-home-markdown 11KiB 0B 11KiB 0B
docs-nixos-markdown 6.5KiB 0B 6.5KiB 0B
docs-nvim-markdown 2.4KiB 0B 2.4KiB 0B
jpassmenu 173MiB 0B 3.6KiB 0B
nvim 2.1GiB 0B 627KiB 0B
nvim-headless 444MiB 0B 627KiB 0B
nvim-no-lsps 1007MiB 0B 627KiB 0B
nvim-no-ts 1.8GiB 0B 627KiB 0B
nvim-small 1.3GiB 0B 627KiB 0B
search 896KiB 0B 896KiB 0B
<!-- AUTOGENERATED by nix-flake-outputs-size action --> ## Flake output sizes <details><summary><b>Definitions</b></summary> - `Name`: the name of the package/configuration. - `Size`: the closure size (size on disk/NAR size + all transitive dependencies). - `NAR Size`: the size of the build output (package without the dependencies). - `[NAR] Size Change`: the amount changed compared to the main branch. </details> <details><summary><b>Tips on reading this data</b></summary> - For NixOS/Home-Manager configurations you generally care only about the `Size` (closure size/size on disk). - Reduce the `Size` by disabling unneeded services/default packages. - For Packages you care about both the `Size` and the `NAR Size`. - Reduce the `NAR Size` by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc. - Reduce the `Size` by reducing the dependencies (e.g. `buildInputs`). - Don't worry too much about size, some dependencies are deduplicated, e.g. `glibc` adds ~40MiB to the `Size`, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. `musl` is not gonna improve things. </details> ## NixOS Configurations | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `vm` | 12GiB | 680B | 19KiB | 0B | ## Home Manager Configurations | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `example` | 3.9GiB | 680B | 18KiB | 0B | ## Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `audiomenu` | 173MiB | 0B | 7.3KiB | 0B | | `docs` | 3.1MiB | -39KiB | 3.1MiB | -39KiB | | `docs-home-markdown` | 11KiB | 0B | 11KiB | 0B | | `docs-nixos-markdown` | 6.5KiB | 0B | 6.5KiB | 0B | | `docs-nvim-markdown` | 2.4KiB | 0B | 2.4KiB | 0B | | `jpassmenu` | 173MiB | 0B | 3.6KiB | 0B | | `nvim` | 2.1GiB | 0B | 627KiB | 0B | | `nvim-headless` | 444MiB | 0B | 627KiB | 0B | | `nvim-no-lsps` | 1007MiB | 0B | 627KiB | 0B | | `nvim-no-ts` | 1.8GiB | 0B | 627KiB | 0B | | `nvim-small` | 1.3GiB | 0B | 627KiB | 0B | | `search` | 896KiB | 0B | 896KiB | 0B |
jalil merged commit d001a410dd into main 2025-08-15 10:55:08 +02:00
jalil deleted branch push-pkpmuksootzt 2025-08-15 10:55:08 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jalil/configuration.nix#627
No description provided.