added nix fmt pre-commit and k8s vscode extension

This commit is contained in:
Jakub Kropáček 2024-10-06 23:19:51 +02:00
parent 33c57c85df
commit e3560b2bdd
4 changed files with 16 additions and 3 deletions

8
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: nix-fmt
name: nix-fmt
language: script
require_serial: true
entry: scripts/format.sh

View file

@ -3,9 +3,10 @@
lib,
...
}:
let
let
cfg = config.krop.audio;
in {
in
{
options.krop.audio = {
enable = lib.mkOption {
type = lib.types.bool;
@ -24,4 +25,4 @@ in {
pulse.enable = true;
};
};
}
}

3
scripts/format.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
nix fmt

View file

@ -167,6 +167,7 @@
tamasfe.even-better-toml
vscodevim.vim
ms-azuretools.vscode-docker
ms-kubernetes-tools.vscode-kubernetes-tools
];
mutableExtensionsDir = false;
};