mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 23:03:40 +00:00
Add kubernetes to starship.toml
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
let
|
||||
nix-pre-commit-hooks =
|
||||
import (builtins.fetchTarball
|
||||
"https://github.com/cachix/pre-commit-hooks.nix/tarball/master");
|
||||
"https://github.com/cachix/pre-commit-hooks.nix/tarball/master");
|
||||
in {
|
||||
pre-commit-check = nix-pre-commit-hooks.run {
|
||||
src = ./.;
|
||||
|
@@ -91,6 +91,14 @@ in {
|
||||
add_newline = false;
|
||||
scan_timeout = 10;
|
||||
character = {error_symbol = "[✖](bold red)";};
|
||||
kubernetes = {
|
||||
disabled = false;
|
||||
context_aliases = {
|
||||
".*stg_.*" = "stg";
|
||||
".*test_.*" = "test";
|
||||
".*prd_.*" = "prd";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
(import
|
||||
(
|
||||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}
|
||||
)
|
||||
{
|
||||
src = ./.;
|
||||
})
|
||||
(
|
||||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}
|
||||
)
|
||||
{
|
||||
src = ./.;
|
||||
})
|
||||
.defaultNix
|
||||
|
Reference in New Issue
Block a user