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:
parent
304d4e9000
commit
2d03d4af5b
@ -124,8 +124,6 @@
|
||||
self.nixosModules.e11sync
|
||||
];
|
||||
};
|
||||
nixosModules.e11sync = import ./modules/e11sync {
|
||||
inherit nixpkgs geoip2-tarball;
|
||||
};
|
||||
nixosModules.e11sync = import ./modules/e11sync geoip2-tarball;
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user