add overlay

This commit is contained in:
2026-05-01 01:17:39 -04:00
parent 179ced171d
commit f878369896
5 changed files with 45 additions and 15 deletions

View File

@@ -164,19 +164,23 @@
lib = self;
}
);
packageSetup = import ./pkgs/default.nix { inherit nixpkgs; };
inherit (packageSetup) localPackagesOverlay;
inherit (lib.adev.systems) genSystems getImages;
inherit (self) outputs; # for hydra
in
rec {
inherit lib; # for allowing use of custom functions in nix repl
overlays.default = localPackagesOverlay;
hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; };
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt);
nixosConfigurations = genSystems inputs outputs src (src + "/systems");
homeConfigurations = {
"alice" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "x86_64-linux"; };
pkgs = packageSetup.mkPkgs "x86_64-linux";
modules = [
inputs.stylix.homeModules.stylix
inputs.sops-nix.homeManagerModules.sops
@@ -203,13 +207,7 @@
qcow = getImages nixosConfigurations "qcow";
};
packages.x86_64-linux.lego-latest =
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/lego-latest/default.nix
{ };
packages.x86_64-linux.claurst =
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/claurst/default.nix
{ };
packages = forEachSystem packageSetup.mkPackages;
checks = import ./checks.nix { inherit inputs forEachSystem formatter; };
devShells = import ./shell.nix { inherit inputs forEachSystem checks; };