Move starship into its own module
This commit is contained in:
parent
e9f3a9a877
commit
b7a2cc0813
|
@ -17,25 +17,6 @@
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
tmux.enableShellIntegration = true;
|
tmux.enableShellIntegration = true;
|
||||||
};
|
};
|
||||||
starship = {
|
|
||||||
settings = {
|
|
||||||
add_newline = false;
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$nix_shell"
|
|
||||||
"$python"
|
|
||||||
"$git_branch"
|
|
||||||
"$git_status"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
python = {
|
|
||||||
format = "[\${symbol}($virtualenv) ]($style)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
vim = {
|
vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
./programs/rapid-photo-downloader
|
./programs/rapid-photo-downloader
|
||||||
./programs/signal
|
./programs/signal
|
||||||
./programs/ssh
|
./programs/ssh
|
||||||
|
./programs/starship
|
||||||
./programs/telegram
|
./programs/telegram
|
||||||
./programs/tmux
|
./programs/tmux
|
||||||
./programs/vagrant-wsl
|
./programs/vagrant-wsl
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.programs.az-starship;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
programs.az-starship.enable = lib.mkEnableOption "My configuration for Starship";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.starship = {
|
||||||
|
settings = {
|
||||||
|
add_newline = false;
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$username"
|
||||||
|
"$hostname"
|
||||||
|
"$directory"
|
||||||
|
"$nix_shell"
|
||||||
|
"$python"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_status"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
python = {
|
||||||
|
format = "[\${symbol}($virtualenv) ]($style)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,6 +19,7 @@
|
||||||
az-hunspell.enable = true;
|
az-hunspell.enable = true;
|
||||||
az-open-port.enable = true;
|
az-open-port.enable = true;
|
||||||
az-ssh.enable = true;
|
az-ssh.enable = true;
|
||||||
|
az-starship.enable = true;
|
||||||
az-tmux.enable = true;
|
az-tmux.enable = true;
|
||||||
};
|
};
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
userEmail = "zweili@contria.com";
|
userEmail = "zweili@contria.com";
|
||||||
};
|
};
|
||||||
az-hunspell.enable = true;
|
az-hunspell.enable = true;
|
||||||
|
az-starship.enable = true;
|
||||||
az-tmux.enable = true;
|
az-tmux.enable = true;
|
||||||
az-vagrant-wsl.enable = true;
|
az-vagrant-wsl.enable = true;
|
||||||
bash = {
|
bash = {
|
||||||
|
|
Loading…
Reference in New Issue