remove pre-commit-update hook, re-enable formatter hook
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
6a5c8fbd03
commit
758ebf1d45
32
flake.nix
32
flake.nix
@ -167,36 +167,18 @@
|
|||||||
[ ];
|
[ ];
|
||||||
fileList = dir: map (file: ./. + "/${dir}/${file}") (ls dir);
|
fileList = dir: map (file: ./. + "/${dir}/${file}") (ls dir);
|
||||||
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
repos = [
|
repos = [
|
||||||
{
|
|
||||||
repo = "https://gitlab.com/vojko.pribudic/pre-commit-update";
|
|
||||||
rev = "2d784f3bebf8a39417b70e77062135e3282f1181";
|
|
||||||
hooks = [
|
|
||||||
{
|
|
||||||
id = "pre-commit-update";
|
|
||||||
args = [ "--dry-run" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
repo = "local";
|
repo = "local";
|
||||||
hooks = [
|
hooks = [
|
||||||
# {
|
{
|
||||||
# id = "nixfmt check";
|
id = "nix fmt check";
|
||||||
# entry = "${nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style}/bin/nixfmt";
|
entry = "${outputs.formatter.x86_64-linux}/bin/nixfmt";
|
||||||
# args = [ "--check" ];
|
args = [ "--check" ];
|
||||||
# language = "system";
|
language = "system";
|
||||||
# files = "\\.nix";
|
files = "\\.nix";
|
||||||
# }
|
}
|
||||||
# {
|
|
||||||
# id = "check";
|
|
||||||
# entry = "nix eval";
|
|
||||||
# language = "system";
|
|
||||||
# files = "\\.nix";
|
|
||||||
# pass_filenames = false;
|
|
||||||
# }
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ pkg, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
@ -20,6 +20,18 @@
|
|||||||
#"fzf"
|
#"fzf"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
file = "nix-shell.plugin.zsh";
|
||||||
|
src = pkg.fetchFromGitHub {
|
||||||
|
owner = "chisui";
|
||||||
|
repo = "zsh-nix-shell";
|
||||||
|
rev = "v0.8.0";
|
||||||
|
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
# functions
|
# functions
|
||||||
function mount-data {
|
function mount-data {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user