snowfield/shell.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2024-04-05 00:33:26 +02:00
let
2024-09-10 15:07:35 +02:00
inputs = import ./lon.nix;
2024-04-07 14:33:13 +02:00
pkgs = import inputs.unstable { };
2024-04-05 00:33:26 +02:00
nixos-anywhere = pkgs.callPackage "${inputs.nixos-anywhere}/src/default.nix" { };
2024-04-05 19:29:45 +02:00
agenix = pkgs.callPackage "${inputs.agenix}/pkgs/agenix.nix" { };
2024-07-12 16:31:09 +02:00
bootstrap = pkgs.callPackage scripts/bootstrap-machine.nix { inherit nixos-anywhere; };
2024-09-10 15:07:35 +02:00
lon = pkgs.callPackage "${inputs.lon}/nix/packages/lon.nix" { };
2024-12-21 13:42:48 +01:00
nixmoxer = pkgs.callPackage "${inputs.proxmox}/pkgs/nixmoxer" { };
pre-commit-hook =
(import (
pkgs.applyPatches {
name = "patched-git-hooks";
src = inputs.git-hooks;
}
)).run
{
src = ./.;
2024-04-07 14:33:13 +02:00
hooks = {
statix = {
enable = true;
settings.ignore = [
"**/lon.nix"
];
};
deadnix.enable = true;
rfc101 = {
enable = true;
name = "RFC-101 formatting";
entry = "${pkgs.lib.getExe pkgs.nixfmt-rfc-style}";
files = "\\.nix$";
};
commitizen.enable = true;
};
2024-04-07 14:33:13 +02:00
};
2024-04-05 00:33:26 +02:00
in
pkgs.mkShell {
2024-07-12 16:41:16 +02:00
nativeBuildInputs = [
pkgs.colmena
2025-03-17 09:28:50 +01:00
pkgs.rbw
2024-04-07 14:33:13 +02:00
agenix
bootstrap
2024-07-12 16:41:16 +02:00
pkgs.statix
2024-09-10 15:07:35 +02:00
lon
2024-12-21 13:42:48 +01:00
nixmoxer
2024-04-07 14:33:13 +02:00
];
shellHook = ''
${pre-commit-hook.shellHook}
'';
2024-04-05 00:33:26 +02:00
}