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

@ -5,7 +5,8 @@
}: }:
let let
cfg = config.krop.audio; cfg = config.krop.audio;
in { in
{
options.krop.audio = { options.krop.audio = {
enable = lib.mkOption { enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;

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 tamasfe.even-better-toml
vscodevim.vim vscodevim.vim
ms-azuretools.vscode-docker ms-azuretools.vscode-docker
ms-kubernetes-tools.vscode-kubernetes-tools
]; ];
mutableExtensionsDir = false; mutableExtensionsDir = false;
}; };