flake(overlays): add lucem to overlay

This commit is contained in:
NullBite 2025-02-22 14:35:19 -05:00
parent cd302073fe
commit 62b16ae836
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 27 additions and 4 deletions

View File

@ -170,7 +170,9 @@
atool-wrapped = packages.atool;
};
in [
# TODO delete this, transfer all packages to new-packages overlay
packagesOverlay
self.overlays.new-packages
# various temporary fixes that automatically revert
self.overlays.mitigations

View File

@ -1,11 +1,32 @@
{ config, lib, ... }:
{
config,
lib,
...
}: {
imports = [./legacy-module.nix];
config = {
perSystem = { system, inputs', self', pkgs, ...}: {
perSystem = {
system,
inputs',
self',
pkgs,
...
}: {
packages = {
lucem = pkgs.callPackage ./lucem {};
};
};
flake = {
overlays.new-packages = final: prev: let
inherit (final) callPackage;
currentSystem = config.perSystem "${prev.system}";
flakePackages = currentSystem.packages;
addPackages = packages: lib.genAttrs packages (package: callPackage flakePackages.${package}.override {});
in
addPackages [
"lucem"
];
};
};
}