amadaluzian-zsh: init amadaluzian-zsh
This commit is contained in:
parent
f082ca90e4
commit
e7b8922920
20 changed files with 263 additions and 330 deletions
56
flake.nix
56
flake.nix
|
@ -1,34 +1,34 @@
|
|||
{
|
||||
description = "Alqages, packages from alqueva to here.";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; };
|
||||
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
eachSystem = f:
|
||||
nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"] (system:
|
||||
f {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
in {
|
||||
overlays.default = _: prev: (builtins.listToAttrs (
|
||||
builtins.map (
|
||||
name: {
|
||||
inherit name;
|
||||
value = prev.callPackage ./packages/${name} {inherit inputs;};
|
||||
}
|
||||
) (builtins.attrNames (
|
||||
nixpkgs.lib.filterAttrs (
|
||||
_: v: v == "directory"
|
||||
) (builtins.readDir ./packages)
|
||||
))
|
||||
));
|
||||
outputs = inputs@{ self, nixpkgs, }:
|
||||
let
|
||||
inherit (nixpkgs) lib;
|
||||
eachSystem = f:
|
||||
nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system:
|
||||
f {
|
||||
inherit system;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
in {
|
||||
overlays.default = _: prev:
|
||||
lib.pipe (builtins.readDir ./packages) [
|
||||
(lib.filterAttrs (_: v: v == "directory"))
|
||||
(lib.concatMapAttrs (name: _: {
|
||||
${name} = prev.callPackage ./packages/${name} { inherit inputs; };
|
||||
}))
|
||||
];
|
||||
|
||||
packages = eachSystem ({pkgs}: self.overlays.default pkgs pkgs);
|
||||
formatter = eachSystem ({pkgs}: pkgs.alejandra);
|
||||
};
|
||||
packages = eachSystem ({ pkgs, ... }: self.overlays.default pkgs pkgs);
|
||||
devShells = eachSystem ({ pkgs, ... }: {
|
||||
default = pkgs.mkShell {
|
||||
name = "alqages-dev";
|
||||
packages =
|
||||
builtins.attrValues { inherit (pkgs) nil nixfmt deadnix statix; };
|
||||
};
|
||||
});
|
||||
formatter = eachSystem ({ pkgs, ... }: pkgs.nixfmt);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue