1

flake.nix: construct overlays cleanly

thanks to @jonringer in https://discourse.nixos.org/t/overlays-in-nested-flakes/17066/2
This commit is contained in:
Motiejus Jakštys 2024-01-20 06:58:09 +02:00
parent 304d4e9000
commit 2d03d4af5b
2 changed files with 4 additions and 11 deletions

View File

@ -124,8 +124,6 @@
self.nixosModules.e11sync
];
};
nixosModules.e11sync = import ./modules/e11sync {
inherit nixpkgs geoip2-tarball;
};
nixosModules.e11sync = import ./modules/e11sync geoip2-tarball;
};
}

View File

@ -1,16 +1,11 @@
{
nixpkgs,
geoip2-tarball,
}: {
geoip2-tarball: {
config,
lib,
pkgs,
...
}: let
pkgs1 = import nixpkgs {
inherit (pkgs.stdenv.hostPlatform) system;
overlays = import ../../overlays.nix geoip2-tarball;
};
pkgs1 = pkgs.extend (lib.composeManyExtensions overlays);
in {
options.e11sync = with lib.types; {
enable = lib.mkEnableOption "Enable e11sync";