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
|
self.nixosModules.e11sync
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixosModules.e11sync = import ./modules/e11sync {
|
nixosModules.e11sync = import ./modules/e11sync geoip2-tarball;
|
||||||
inherit nixpkgs geoip2-tarball;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
{
|
geoip2-tarball: {
|
||||||
nixpkgs,
|
|
||||||
geoip2-tarball,
|
|
||||||
}: {
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pkgs1 = import nixpkgs {
|
overlays = import ../../overlays.nix geoip2-tarball;
|
||||||
inherit (pkgs.stdenv.hostPlatform) system;
|
pkgs1 = pkgs.extend (lib.composeManyExtensions overlays);
|
||||||
overlays = import ../../overlays.nix geoip2-tarball;
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
options.e11sync = with lib.types; {
|
options.e11sync = with lib.types; {
|
||||||
enable = lib.mkEnableOption "Enable e11sync";
|
enable = lib.mkEnableOption "Enable e11sync";
|
||||||
|
Loading…
Reference in New Issue
Block a user