blob: 66dd2e7ab430c4ec3298d52c6c507df9198d1a51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
description = "Cynerd's shell configuration";
outputs = {
self,
flake-utils,
nixpkgs,
}:
with flake-utils.lib;
{
overlays = {
shellrc = final: prev: import ./pkgs.nix {pkgs = prev;};
default = self.overlays.shellrc;
};
nixosModules = {
shellrc = import ./nixos.nix [self.overlays.shellrc];
default = self.nixosModules.shellrc;
};
}
// eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
selfPkgs = filterPackages system (flattenTree (import ./pkgs.nix {inherit pkgs;}));
in {
packages = selfPkgs // {default = selfPkgs.shellrc-bash;};
legacyPackages = pkgs.extend self.overlays.default;
formatter = pkgs.alejandra;
checks.statix =
pkgs.runCommandNoCC "check-statix" {}
"${pkgs.statix}/bin/statix check ${./.} && touch $out";
});
}
|