mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-02 15:03:34 +00:00
treewide. complete refactor
Lots of cleaning up, I cannot be arsed to commit everything one-by-one
This commit is contained in:
parent
a704a123ec
commit
5b7812600d
24 changed files with 631 additions and 464 deletions
34
flake.nix
34
flake.nix
|
@ -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];};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue