Add custom packages
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m56s

This commit is contained in:
2024-08-04 11:47:33 +01:00
parent 6dcd2b0139
commit 127ef6353c
5 changed files with 180 additions and 31 deletions

View File

@ -53,14 +53,24 @@
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, agenix, deploy-rs, disko, home-manager, nixos-hardware, nixos-mailserver, ... }:
let
inherit (nixpkgs) lib;
forEachSystem = lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
];
mkPkgsForSystem = system: inputs.nixpkgs;
customPkgs = forEachSystem (system:
lib.packagesFromDirectoryRecursive {
callPackage = nixpkgs.legacyPackages.${system}.callPackage;
directory = ./pkgs;
});
overlays = [
agenix.overlays.default
(import ./overlays/gnome.nix)
(import ./overlays/default.nix)
(
final: prev: {
unstable = import inputs.nixpkgs-unstable { system = final.system; };
custom = self.packages { system = final.system; };
}
)
];