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