wip: add config file to webnsupdate #105

Draft
jalil wants to merge 1 commit from push-tprzxqoskrly into main
Owner

Major update: add configuration file (plus a few extra (unused) config knobs)

Major update: add configuration file (plus a few extra (unused) config knobs)
jalil self-assigned this 2025-02-07 22:04:41 +01:00
jalil added 1 commit 2025-02-07 22:04:41 +01:00
wip: add config file to webnsupdate
All checks were successful
/ build (push) Successful in 1m7s
/ check (clippy) (push) Successful in 15s
/ check (module-ipv4-only-test) (push) Successful in 32s
/ check (module-ipv4-test) (push) Successful in 30s
/ check (module-ipv6-only-test) (push) Successful in 32s
/ check (module-ipv6-test) (push) Successful in 30s
/ check (module-nginx-test) (push) Successful in 32s
/ check (nextest) (push) Successful in 3s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 7s
8bfa36b837
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.

Packages

Name Size Size Change NAR Size NAR Size Change
default 35MiB 9.9KiB 2.9MiB 9.9KiB
git-cliff 60MiB 0B 19MiB 0B
webnsupdate 35MiB 9.9KiB 2.9MiB 9.9KiB
# 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. # Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `default` | 35MiB | 9.9KiB | 2.9MiB | 9.9KiB | | `git-cliff` | 60MiB | 0B | 19MiB | 0B | | `webnsupdate` | 35MiB | 9.9KiB | 2.9MiB | 9.9KiB |
All checks were successful
/ build (push) Successful in 1m7s
Required
Details
/ check (clippy) (push) Successful in 15s
Required
Details
/ check (module-ipv4-only-test) (push) Successful in 32s
Required
Details
/ check (module-ipv4-test) (push) Successful in 30s
Required
Details
/ check (module-ipv6-only-test) (push) Successful in 32s
Required
Details
/ check (module-ipv6-test) (push) Successful in 30s
Required
Details
/ check (module-nginx-test) (push) Successful in 32s
Required
Details
/ check (nextest) (push) Successful in 3s
Required
Details
/ check (treefmt) (push) Successful in 3s
Required
Details
/ report-size (push) Successful in 7s
Required
Details
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin push-tprzxqoskrly:push-tprzxqoskrly
git checkout push-tprzxqoskrly
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/webnsupdate#105
No description provided.