Compare commits

..

No commits in common. "742c8c26ebd92f7c615c86be02f2d3de703d6508" and "4200b44e6226eacf8c2f609064af1615755b21f6" have entirely different histories.

5 changed files with 11 additions and 64 deletions

View file

@ -12,12 +12,12 @@
let let
stateVersion = "23.11"; stateVersion = "23.11";
in { in {
# TODO: make a multiarch flake # TODO: make a multiach flake
devShells.x86_64-linux.default = devShells.x86_64-linux.default =
let let
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
in pkgs.mkShell { in pkgs.mkShell {
name = "nixfiles";
buildInputs = [ buildInputs = [
pkgs.shellcheck pkgs.shellcheck
pkgs.lefthook pkgs.lefthook

View file

@ -10,7 +10,6 @@
ghq.enable = true; ghq.enable = true;
git.enable = true; git.enable = true;
neovim.enable = true; neovim.enable = true;
starship.enable = true;
utils.enable = true; utils.enable = true;
vifm.enable = true; vifm.enable = true;
zsh.enable = true; zsh.enable = true;

View file

@ -1,60 +0,0 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.cli.starship;
in
{
options.modules.cli.starship = {
enable = mkEnableOption "enable starship prompt";
};
config = mkIf cfg.enable {
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
format = "$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$line_break $python$nix_shell$character";
directory = {
style = "blue";
truncate_to_repo = false;
};
character = {
success_symbol = "[󰅂](purple)";
error_symbol = "[󰅂](red)";
vimcmd_symbol = "[󰅁](green)";
};
git_branch = {
format = "[$branch]($style)";
style = "bright-black";
};
git_status = {
format = "[[( *$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style) ";
style = "cyan";
conflicted = "";
untracked = "";
modified = "";
staged = "";
renamed = "";
deleted = "";
stashed = "";
};
git_state = {
format = "\\([$state( $progress_current/$progress_total)]($style)\\)";
style = "bright-black";
};
cmd_duration = {
format = "[$duration]($style) ";
style = "yellow";
};
python = {
format = "[$virtualenv]($style) ";
style = "bright-black";
};
nix_shell = {
format = "[$symbol$name]($style) ";
symbol = " ";
style = "bright-black";
};
};
};
};
}

View file

@ -89,6 +89,15 @@ in
compinit -C compinit -C
''; '';
plugins = [ plugins = [
{
name = "pure";
src = pkgs.fetchFromGitHub {
owner = "sindresorhus";
repo = "pure";
rev = "v1.22.0";
hash = "sha256-TR4CyBZ+KoZRs9XDmWE5lJuUXXU1J8E2Z63nt+FS+5w=";
};
}
{ {
name = "base16-shell"; name = "base16-shell";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {

View file

@ -9,7 +9,6 @@
./cli/ghq/default.nix ./cli/ghq/default.nix
./cli/git ./cli/git
./cli/neovim ./cli/neovim
./cli/starship
./cli/utils ./cli/utils
./cli/vifm ./cli/vifm
./cli/zsh ./cli/zsh