mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
Chore: update formatter
This commit is contained in:
parent
3eb72c17d7
commit
880c97dff8
4 changed files with 37 additions and 20 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
result
|
||||
result/
|
||||
secrets/yubikey-identity.txt
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
mkExtensionIgnore = exts: "*.{${lib.concatStringsSep "," exts}}";
|
||||
in {
|
||||
imports = [inputs.treefmt-nix.flakeModule];
|
||||
|
||||
perSystem = {config, ...}: {
|
||||
|
|
@ -10,8 +16,18 @@
|
|||
statix.enable = true;
|
||||
just.enable = true;
|
||||
prettier.enable = true;
|
||||
fish_indent.enable = true;
|
||||
};
|
||||
settings.global.excludes = ["*.{gitignore,svg}"];
|
||||
settings.global.excludes = [
|
||||
"result"
|
||||
"*/node_modules/*"
|
||||
(mkExtensionIgnore [
|
||||
"gitignore"
|
||||
"svg"
|
||||
"age"
|
||||
"pub"
|
||||
])
|
||||
];
|
||||
};
|
||||
formatter = config.treefmt.build.wrapper;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ set __kube_verbs_short g d rm e
|
|||
set __kube_resource pods deployments services ingresses configmaps daemonsets statefulsets namespace namespace
|
||||
set __kube_resource_short p d s i c ds ss n ns
|
||||
|
||||
function __echo_kubeexec;
|
||||
function __echo_kubeexec
|
||||
set _flag_namespace (kubectl config view --minify --output 'jsonpath={..namespace}')
|
||||
if test -z "$_flag_namespace"
|
||||
set _flag_namespace default
|
||||
|
|
@ -18,7 +18,7 @@ function __echo_kubeexec;
|
|||
echo "kubectl exec --namespace $_flag_namespace -it $POD --"
|
||||
end
|
||||
|
||||
function __echo_kubemanage;
|
||||
function __echo_kubemanage
|
||||
set _flag_namespace (kubectl config view --minify --output 'jsonpath={..namespace}')
|
||||
if test -z "$_flag_namespace"
|
||||
set _flag_namespace default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue