refactor(hm/gui): reorganize modules #424

Merged
jalil merged 1 commit from push-wsoumzymrztr into main 2025-04-21 19:19:26 +02:00
Owner

This way we are not importing stuff which is slow.

It also makes it easier to turn off the sway module.

This way we are not `import`ing stuff which is slow. It also makes it easier to turn off the sway module.
jalil self-assigned this 2025-04-21 18:44:17 +02:00
refactor(hm/gui): reorganize modules
Some checks failed
/ check (push) Successful in 37s
/ check-renovaterc (push) Successful in 7s
/ build-packages (push) Successful in 2m28s
/ build-vm (push) Failing after 1s
/ report-size (push) Has been skipped
8d37deaaa8
This way we are not `import`ing stuff which is slow.

It also makes it easier to turn off the sway module.
jalil force-pushed push-wsoumzymrztr from 8d37deaaa8
Some checks failed
/ check (push) Successful in 37s
/ check-renovaterc (push) Successful in 7s
/ build-packages (push) Successful in 2m28s
/ build-vm (push) Failing after 1s
/ report-size (push) Has been skipped
to 5c13d9a901
Some checks failed
/ check (push) Successful in 9s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Successful in 13s
/ build-vm (push) Failing after 2s
/ report-size (push) Has been skipped
2025-04-21 18:57:26 +02:00
Compare
jalil force-pushed push-wsoumzymrztr from 5c13d9a901
Some checks failed
/ check (push) Successful in 9s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Successful in 13s
/ build-vm (push) Failing after 2s
/ report-size (push) Has been skipped
to 5b0f568ca2
Some checks failed
/ check (push) Successful in 15s
/ check-renovaterc (push) Successful in 6s
/ build-packages (push) Successful in 22s
/ build-vm (push) Failing after 4s
/ report-size (push) Has been skipped
2025-04-21 19:00:16 +02:00
Compare
jalil force-pushed push-wsoumzymrztr from 5b0f568ca2
Some checks failed
/ check (push) Successful in 15s
/ check-renovaterc (push) Successful in 6s
/ build-packages (push) Successful in 22s
/ build-vm (push) Failing after 4s
/ report-size (push) Has been skipped
to 5358188ad1
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 5s
2025-04-21 19:07:03 +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 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.8GiB 7.2MiB 19KiB 0B

Packages

Name Size Size Change NAR Size NAR Size Change
audiomenu 42MiB 0B 1.4MiB 0B
docs 3.1MiB 0B 3.1MiB 0B
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 43MiB 0B 2.3MiB 0B
nvim 1.6GiB 0B 626KiB 0B
nvim-headless 442MiB 0B 626KiB 0B
nvim-no-lsps 763MiB 0B 626KiB 0B
nvim-no-ts 1.4GiB 0B 626KiB 0B
nvim-small 1004MiB 0B 626KiB 0B
search 727KiB 0B 9.0KiB 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.8GiB | 7.2MiB | 19KiB | 0B | ## Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `audiomenu` | 42MiB | 0B | 1.4MiB | 0B | | `docs` | 3.1MiB | 0B | 3.1MiB | 0B | | `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` | 43MiB | 0B | 2.3MiB | 0B | | `nvim` | 1.6GiB | 0B | 626KiB | 0B | | `nvim-headless` | 442MiB | 0B | 626KiB | 0B | | `nvim-no-lsps` | 763MiB | 0B | 626KiB | 0B | | `nvim-no-ts` | 1.4GiB | 0B | 626KiB | 0B | | `nvim-small` | 1004MiB | 0B | 626KiB | 0B | | `search` | 727KiB | 0B | 9.0KiB | 0B |
jalil merged commit 5358188ad1 into main 2025-04-21 19:19:26 +02:00
jalil deleted branch push-wsoumzymrztr 2025-04-21 19:19:26 +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!424
No description provided.