commit e9fc0d3c22355b2a3966ca584f7a60b704995b79
parent 3a74f70fffa98de966a6a7e75ccf6036cb417afe
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Sun, 3 Aug 2025 16:51:26 +0200
parent 3a74f70fffa98de966a6a7e75ccf6036cb417afe
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Sun, 3 Aug 2025 16:51:26 +0200
flake: Add overlay and modules
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/flake.nix b/flake.nix @@ -13,14 +13,28 @@ let lib = inputs.nixpkgs.lib; pkgs = import inputs.nixpkgs { inherit system; }; - in - rec { - hydraJobs = packages; packages = lib.mapAttrs (name: _: pkgs.callPackage ./pkgs/${name}/package.nix { }) ( builtins.readDir ./pkgs ); + overlay = final: prev: { + emivoid = packages; + }; + in + rec { + overlays = { + default = overlay; + }; + + nixosModules = { + default = { + nixpkgs.overlays = [ overlay ]; + }; + }; + + inherit packages; + formatter = pkgs.nixfmt-rfc-style; } );