Defining the `stable` and `master` package overlays directly in `flake/hosts.nix` allows them to properly inherit `config.nixpkgs.config` from the specific host.
24 lines
749 B
Nix
24 lines
749 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
flake.overlays = {
|
|
modifications =
|
|
final: prev:
|
|
lib.infuse prev {
|
|
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
|
bottles.__input.removeWarningPopup.__assign = true;
|
|
|
|
easytier.__assign = final.stable.easytier;
|
|
|
|
python314Packages.patool.__input.file.__output.postPatch.__append =
|
|
lib.warn "Remove `file` patch once https://github.com/NixOS/nixpkgs/pull/540742 is merged" ''
|
|
substituteInPlace src/landlock.c --replace-fail \
|
|
"LANDLOCK_ACCESS_FS_READ_FILE | LANDLOCK_ACCESS_FS_READ_DIR" \
|
|
"LANDLOCK_ACCESS_FS_READ_FILE | LANDLOCK_ACCESS_FS_READ_DIR | LANDLOCK_ACCESS_FS_EXECUTE"
|
|
'';
|
|
};
|
|
};
|
|
}
|