Refactor modules #356

Merged
jalil merged 4 commits from push-wlplzqkzpztr into main 2025-03-16 19:22:30 +01:00
Owner

This tidies the modules up a bit

This tidies the modules up a bit
jalil self-assigned this 2025-03-16 17:45:13 +01:00
jalil added 3 commits 2025-03-16 17:45:13 +01:00
A bit more tidy c:
refactor(home-manager): use flake-parts module
Some checks failed
/ check (nvimDev) (push) Failing after 1s
/ check (nvimHeadless) (push) Failing after 1s
/ check (nvimNoBundledBins) (push) Failing after 1s
/ check (nvimNoLsp) (push) Failing after 1s
/ check (nvimNoTSGrammars) (push) Failing after 1s
/ check (treefmt) (push) Successful in 3s
/ check-renovaterc (push) Successful in 3s
/ build (audiomenu) (push) Has been skipped
/ build (docs) (push) Has been skipped
/ build (jpassmenu) (push) Has been skipped
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Has been skipped
/ build (nvim) (push) Has been skipped
/ report-size (push) Has been skipped
981fa9ae78
This is only available in the unstable HM branch, so we are stuck with
the non flake-parts version
jalil added 1 commit 2025-03-16 19:15:20 +01:00
ci: use nix-fast-build to speedup checks
All checks were successful
/ check (push) Successful in 9s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Successful in 13s
/ build-vm (push) Successful in 2s
/ report-size (push) Successful in 4s
78327cd972
This should provide a nice speedup over calling nix build sequentially
First-time contributor

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 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 9.0GiB 0B 19KiB 0B

Packages

Name Size Size Change NAR Size NAR Size Change
audiomenu 42MiB 0B 1.4MiB 0B
docs 2.4MiB 3.5KiB 2.4MiB 3.5KiB
docs-home-markdown 11KiB 400B 11KiB 400B
docs-nixos-markdown 6.5KiB 248B 6.5KiB 248B
docs-nvim-markdown 2.4KiB 120B 2.4KiB 120B
jpassmenu 43MiB 0B 2.3MiB 0B
nvim 1.4GiB 0B 578KiB 0B
nvim-headless 389MiB 0B 578KiB 0B
nvim-no-lsps 1.1GiB 195MiB 578KiB 0B
nvim-no-ts 1.5GiB 0B 578KiB 0B
nvim-small 929MiB -195MiB 578KiB 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 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` | 9.0GiB | 0B | 19KiB | 0B | ## Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `audiomenu` | 42MiB | 0B | 1.4MiB | 0B | | `docs` | 2.4MiB | 3.5KiB | 2.4MiB | 3.5KiB | | `docs-home-markdown` | 11KiB | 400B | 11KiB | 400B | | `docs-nixos-markdown` | 6.5KiB | 248B | 6.5KiB | 248B | | `docs-nvim-markdown` | 2.4KiB | 120B | 2.4KiB | 120B | | `jpassmenu` | 43MiB | 0B | 2.3MiB | 0B | | `nvim` | 1.4GiB | 0B | 578KiB | 0B | | `nvim-headless` | 389MiB | 0B | 578KiB | 0B | | `nvim-no-lsps` | 1.1GiB | 195MiB | 578KiB | 0B | | `nvim-no-ts` | 1.5GiB | 0B | 578KiB | 0B | | `nvim-small` | 929MiB | -195MiB | 578KiB | 0B |
jalil merged commit 78327cd972 into main 2025-03-16 19:22:30 +01:00
jalil deleted branch push-wlplzqkzpztr 2025-03-16 19:22:30 +01:00
Sign in to join this conversation.
No reviewers
No labels
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#356
No description provided.