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