nixpkgs/nixos/modules
WilliButz d7ef2defda
nixos/repart-image: refactor to use mkDerivation
As a follow-up to https://github.com/NixOS/nixpkgs/pull/294096 this
should further improve the flexibility around building OS images with
systemd-repart:

* Previously the attribute set `compression` needed to be fully
  populated, including `algorithm` and `level` because
  `compression.enable` was evaluated by bash, after being interpolated
  as strings into the `buildCommand`. Now it's sufficient to pass
  `compression.enable = false` to the builder, e.g. in `overrideAttrs`,
  to disable the compression.
* Using mkDerivation allows for much more customization than the
  previously used `runCommand`, making use of phases and pre/post hooks.
  This is especially helpful for building multiple images from the same
  system configuration, e.g. to build an image `Y` based on a partially
  built raw image `X`,  by injecting a UKI that depends on `X` into a
  defered ESP.
* Before this change it was non-trivial to conduct further manipulations
  on the amended repart definitions. Now, the definitions that
  systemd-repart uses to build the image can be easily manipulated in
  `postPatch` or `preBuild`.

Aside from this, the build is now executed in the build directory, rather
than `$out`. This allows references to relative paths in the build
environment to be used, especially for `--definitions`, which previously
required an absolute path.
2024-03-21 11:37:43 +01:00
..
config nixos/nix: Fix example for nix.settings option 2024-03-19 22:55:19 +01:00
hardware Add ivsc-firmware to ipu6 option 2024-03-15 09:29:46 -05:00
i18n/input-method nixos/fcitx5: enable plasma6Support by default if plasma6 is enabled 2024-03-01 22:43:56 -05:00
image nixos/repart-image: refactor to use mkDerivation 2024-03-21 11:37:43 +01:00
installer nixos/iso-image: extremely cursed performance optimization for Hydra 2024-03-12 15:41:59 +03:00
misc nixos/mandoc: add leading slash to manPath 2024-03-20 00:56:18 +01:00
profiles nixos/hardened: update hardened profile to new recommendations 2024-01-27 20:43:58 +00:00
programs nixos/starship: cleanup 2024-03-20 21:08:43 +11:00
security Merge pull request #291951 from amarshall/zfs-pkgs-renaming 2024-03-01 10:09:12 -05:00
services nixos/dnscache: Provide explicit group for "dnscache" user 2024-03-20 16:45:50 +01:00
system Merge pull request #297227 from WilliButz/uki/expose-rendered-config 2024-03-20 10:41:59 +01:00
tasks Add missing closing parens. 2024-03-02 12:40:40 +01:00
testing nixos/test-instrumentation: use full path to env 2024-03-04 16:12:56 +01:00
virtualisation Merge pull request #224666 from grindhold/container_underscores 2024-03-20 11:41:34 +02:00
module-list.nix nixos/mycelium: init 2024-03-20 03:56:58 +01:00
rename.nix restya-board: drop 2024-02-07 01:33:05 +01:00