added nix fmt pre-commit and k8s vscode extension
This commit is contained in:
parent
33c57c85df
commit
e3560b2bdd
4 changed files with 16 additions and 3 deletions
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: nix-fmt
|
||||||
|
name: nix-fmt
|
||||||
|
language: script
|
||||||
|
require_serial: true
|
||||||
|
entry: scripts/format.sh
|
|
@ -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
3
scripts/format.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
nix fmt
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue