2022-11-20 23:10:39 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
extraModulesPath,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
2022-08-13 21:50:23 +02:00
|
|
|
agenix
|
2023-03-27 13:35:59 +02:00
|
|
|
alejandra
|
2022-08-13 21:50:23 +02:00
|
|
|
cachix
|
|
|
|
editorconfig-checker
|
2022-08-24 00:53:38 +02:00
|
|
|
nix
|
2023-03-27 13:35:59 +02:00
|
|
|
nodePackages
|
2022-08-13 21:50:23 +02:00
|
|
|
nvfetcher
|
2022-11-20 23:10:39 +01:00
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
treefmt
|
2023-01-29 02:39:19 +01:00
|
|
|
nixos-generators
|
2022-11-20 23:10:39 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
inherit
|
|
|
|
(pkgs.nodePackages)
|
|
|
|
prettier
|
2022-08-13 21:50:23 +02:00
|
|
|
;
|
|
|
|
|
2022-11-20 23:10:39 +01:00
|
|
|
pkgWithCategory = category: package: {inherit package category;};
|
2022-08-13 21:50:23 +02:00
|
|
|
devos = pkgWithCategory "devos";
|
2023-03-27 13:35:59 +02:00
|
|
|
formatter = pkgWithCategory "linter";
|
2022-11-20 23:10:39 +01:00
|
|
|
in {
|
2023-03-27 13:35:59 +02:00
|
|
|
imports = ["${extraModulesPath}/git/hooks.nix" ./hooks];
|
2021-07-20 23:36:41 -05:00
|
|
|
|
2022-01-19 01:13:15 +01:00
|
|
|
# override for our own welcome
|
|
|
|
devshell.name = pkgs.lib.mkForce "PubSolarOS";
|
|
|
|
|
2023-03-27 13:35:59 +02:00
|
|
|
packages = [
|
|
|
|
alejandra
|
|
|
|
editorconfig-checker
|
|
|
|
nodePackages.prettier
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
];
|
|
|
|
|
2021-07-20 23:36:41 -05:00
|
|
|
commands = with pkgs;
|
|
|
|
[
|
2022-08-14 14:23:37 +02:00
|
|
|
(devos nix)
|
2021-07-20 23:36:41 -05:00
|
|
|
(devos agenix)
|
|
|
|
{
|
|
|
|
category = "devos";
|
2022-08-09 11:54:19 +02:00
|
|
|
name = pkgs.nvfetcher.pname;
|
|
|
|
help = pkgs.nvfetcher.meta.description;
|
|
|
|
command = "cd $PRJ_ROOT/pkgs; ${pkgs.nvfetcher}/bin/nvfetcher -c ./sources.toml $@";
|
2021-07-20 23:36:41 -05:00
|
|
|
}
|
2023-03-27 13:35:59 +02:00
|
|
|
(formatter treefmt)
|
2022-11-20 23:10:39 +01:00
|
|
|
]
|
|
|
|
++ lib.optionals (!pkgs.stdenv.buildPlatform.isi686) [
|
|
|
|
(devos cachix)
|
|
|
|
]
|
|
|
|
++ lib.optionals (pkgs.stdenv.hostPlatform.isLinux && !pkgs.stdenv.buildPlatform.isDarwin) [
|
2023-01-29 02:39:19 +01:00
|
|
|
(devos nixos-generators)
|
2023-05-13 18:43:12 +02:00
|
|
|
(devos deploy-rs.deploy-rs)
|
2022-11-20 23:10:39 +01:00
|
|
|
];
|
2021-07-20 23:36:41 -05:00
|
|
|
}
|