move overlays from flake.nix -> cerulean/default.nix

This commit is contained in:
do butterflies cry? 2026-01-15 13:09:28 +10:00
parent 99e03effce
commit 9202fa8678
2 changed files with 23 additions and 18 deletions

View file

@ -11,10 +11,26 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{mix, ...} @ inputs:
{
mix,
deploy-rs,
...
} @ inputs:
mix.mkMod (mix.newMixture {specialArgs = inputs;})
(mixture: {
includes.public = [
./flake-config
];
overlays = [
# build deploy-rs as a package not from the flake input,
# hence we can rely on a nixpkg binary cache.
deploy-rs.overlays.default
(self: super: {
deploy-rs = {
inherit (super) deploy-rs;
lib = super.deploy-rs.lib;
};
})
];
})

View file

@ -35,10 +35,12 @@
nixpkgs,
nixpkgs-unstable,
nib,
deploy-rs,
...
} @ inputs: let
lib = nixpkgs.lib;
inherit
(nixpkgs)
lib
;
sys = nib.mkUSys {
pkgs = nib.withPkgs nixpkgs {
@ -49,19 +51,6 @@
config.allowUnfree = false;
};
};
cerulean = import ./cerulean {inherit inputs lib sys;};
in {
overlays = [
# build deploy-rs as a package not from the flake input,
# hence we can rely on a nixpkg binary cache.
deploy-rs.overlays.default
(self: super: {
deploy-rs = {
inherit (super) deploy-rs;
lib = super.deploy-rs.lib;
};
})
];
};
in
import ./cerulean <| inputs // {inherit lib sys;};
}