mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: ...get internet again. git-hooks.nix adopt
This commit is contained in:
parent
7a0f09e700
commit
e00ec8f2f2
116 changed files with 1157 additions and 4681 deletions
|
|
@ -1,31 +1,28 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
std,
|
||||
checks,
|
||||
...
|
||||
}:
|
||||
with pkgs; let
|
||||
repo = import ../outputs.nix {inherit inputs;};
|
||||
inherit (std) set;
|
||||
systemless-git-hooks = system: inputs.self.checks.${system}.git-hooks;
|
||||
git-hooks = systemless-git-hooks pkgs.system;
|
||||
repoShell = mkShell {
|
||||
nativeBuildInputs =
|
||||
[
|
||||
nf-build-system
|
||||
nf-update
|
||||
lix
|
||||
fd # fd, better fine!
|
||||
ripgrep # rg, better grep!
|
||||
sops
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
deploy-rs.deploy-rs # deployment system
|
||||
]
|
||||
++ set.values (set.map (name: _: (pkgs.writeShellScriptBin "${name}-rebuild" ''
|
||||
${pkgs.darwin-rebuild}/bin/darwin-rebuild switch --flake $REPO_ROOT#${name} $@
|
||||
''))
|
||||
repo.darwinConfigurations);
|
||||
nativeBuildInputs = [
|
||||
nf-build-system
|
||||
nf-update
|
||||
lix
|
||||
fd # fd, better fine!
|
||||
ripgrep # rg, better grep!
|
||||
sops
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
deploy-rs.deploy-rs # deployment system
|
||||
];
|
||||
inherit (git-hooks) buildInputs;
|
||||
shellHook = ''
|
||||
${git-hooks.shellHook}
|
||||
export CI_PLATFORM="impure"
|
||||
echo -e "\e[39m\e[1m$USER@$REPO_HOSTNAME - \e[35m''$(realpath --relative-to=../ ./nixos/)\e[0m"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue