Skip to content

Commit

Permalink
fix: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Apr 12, 2024
1 parent e506816 commit 169b876
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 49 deletions.
2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,5 @@
inherit self inputs;
};
};

overlays = import ./overlays;
};
}
2 changes: 0 additions & 2 deletions home/programs/atuin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ _: {
enable = true;

enableFishIntegration = true;
enableBashIntegration = false;
enableZshIntegration = false;

settings = {
inline_height = 0;
Expand Down
1 change: 1 addition & 0 deletions home/programs/fish.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{lib, pkgs, config, ...}: {
programs.fish = {
enable = true;
catppuccin.enable = true;

shellAbbrs = {
"puil" = "pnpm update --interactive --latest";
Expand Down
14 changes: 9 additions & 5 deletions home/programs/fish/config.fish
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/opt/homebrew/bin/brew shellenv | source
pyenv init - | source

set -gx PATH $PYENV_ROOT/bin (brew --prefix ccache)/libexec $GOPATH/bin $CARGO_HOME/bin $PNPM_HOME $XDG_BIN_HOME $XDG_SCRIPT_DIR /opt/homebrew/opt/openjdk/bin $PATH
fish_add_path -Pm /etc/profiles/per-user/$USER/bin /run/current-system/sw/bin

fish_add_path $GOPATH/bin
fish_add_path $CARGO_HOME/bin
fish_add_path $PNPM_HOME
fish_add_path $XDG_BIN_HOME
fish_add_path $XDG_SCRIPT_DIR

starship init fish | source
fnm env | source
atuin init fish | source
zoxide init fish | source
source ~/.config/tabtab/fish/__tabtab.fish
source /Users/uncenter/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true

set fish_greeting
59 changes: 29 additions & 30 deletions home/programs/starship.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@ _: {
enable = true;
catppuccin.enable = true;

enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;

settings = {
add_newline = false;
continuation_prompt = "[](yellow) ";
right_format = "$cmd_duration";
format = ''
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$docker_context\
$package\
$c\
$cmake\
$deno\
$elixir\
$golang\
$haskell\
$nodejs\
$php\
$python\
$rust\
$sudo\
$fill\
$shell\
$line_break\
$status\
$os\
$character'';
format = builtins.concatStringsSep "" [
"$username"
"$hostname"
"$directory"
"$git_branch"
"$git_commit"
"$git_state"
"$git_metrics"
"$git_status"
"$docker_context"
"$package"
"$c"
"$cmake"
"$deno"
"$elixir"
"$golang"
"$haskell"
"$nodejs"
"$php"
"$python"
"$rust"
"$sudo"
"$fill"
"$shell"
"$line_break"
"$status"
"$os"
"$character"
];

fill.symbol = " ";

Expand Down
1 change: 0 additions & 1 deletion modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
fd
gcc
ffmpeg
ffmpegthumbnailer-unstable
fish
fnm
fortls
Expand Down
10 changes: 1 addition & 9 deletions system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
];

system = {
activationScripts.extraActivation = {
text = ''
set -eo pipefail
HOME="/var/root" ${pkgs.lib.getExe pkgs.nvd} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};

defaults = {
dock = {
autohide = true;
Expand Down Expand Up @@ -87,9 +80,7 @@
];
};

programs.bash.enable = true;
programs.fish.enable = true;
programs.zsh.enable = true;

home-manager = {
useGlobalPkgs = true;
Expand All @@ -104,6 +95,7 @@

users.users.uncenter = {
home = "/Users/uncenter";
shell = pkgs.fish;
};

system.stateVersion = 4;
Expand Down

0 comments on commit 169b876

Please sign in to comment.