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 self.nixosModules.e11sync
]; ];
}; };
nixosModules.e11sync = import ./modules/e11sync { nixosModules.e11sync = import ./modules/e11sync geoip2-tarball;
inherit nixpkgs geoip2-tarball;
};
}; };
} }

View File

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