treewide. complete refactor

Lots of cleaning up, I cannot be arsed to commit everything one-by-one
This commit is contained in:
raf 2024-07-22 00:19:39 +03:00
commit 5b7812600d
Signed by: NotAShelf
GPG key ID: AF26552424E53993
24 changed files with 631 additions and 464 deletions

View file

@ -11,12 +11,38 @@
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
outputs = {
nixpkgs,
flake-parts,
self,
...
} @ inputs: let
pins = import ./npins;
in
flake-parts.lib.mkFlake {inherit inputs self;} {
systems = ["x86_64-linux" "aarch64-linux"];
imports = [./pkgs];
imports = [flake-parts.flakeModules.easyOverlay];
perSystem = {
system,
config,
pkgs,
lib,
...
}: let
inherit (lib.filesystem) packagesFromDirectoryRecursive;
in {
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
overlayAttrs = config.packages;
packages = packagesFromDirectoryRecursive {
callPackage = lib.callPackageWith (pkgs // {inherit pins;});
directory = ./pkgs;
};
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
devShells.default = with pkgs; mkShell {buildInputs = [npins];};
};