combine local overlays
1 file changed, 4 insertions(+), 20 deletions(-)
changed files
M flake.nix → flake.nix
@@ -80,30 +80,13 @@ # Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'. forAllSystems = nixpkgs.lib.genAttrs supportedSystems; - readOverlays = - path: - let - content = builtins.readDir path; - in - map (n: import (path + ("/" + n))) ( - builtins.filter ( - n: - ( - builtins.match ".*\\.nix" n != null - && - # ignore Emacs lock files (.#foo.nix) - builtins.match "\\.#.*" n == null - ) - || builtins.pathExists (path + ("/" + n + "/default.nix")) - ) (builtins.attrNames content) - ); - mkHomeConfiguration = { modules, system }: home-manager.lib.homeManagerConfiguration { pkgs = import nixpkgs { inherit system; - overlays = readOverlays (toString ./overlays) ++ [ + overlays = [ + (import ./overlays) agenix.overlays.default angrr.overlays.default (self: super: {@@ -147,7 +130,8 @@ nixosConfigurations.linde = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ { - nixpkgs.overlays = (readOverlays ./overlays) ++ [ + nixpkgs.overlays = [ + (import ./overlays) angrr.overlays.default nur.overlays.default elgit.overlays.default