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
|
|
@ -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
3
scripts/format.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
nix fmt
|
|
@ -167,6 +167,7 @@
|
|||
tamasfe.even-better-toml
|
||||
vscodevim.vim
|
||||
ms-azuretools.vscode-docker
|
||||
ms-kubernetes-tools.vscode-kubernetes-tools
|
||||
];
|
||||
mutableExtensionsDir = false;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue