nixos/home/default.nix

244 lines
6.4 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: {
imports = [./nushell/default.nix ./config/default.nix ./scripts/default.nix];
stylix.targets.fzf.enable = true;
2023-12-18 08:15:18 +00:00
programs = rec {
bash.enable = true;
2023-12-18 08:15:18 +00:00
bat = {
enable = true;
config.theme = "Catppuccin-mocha";
};
bottom = {
enable = true;
settings.colors = with config.lib.stylix.colors.withHashtag; {
table_header_color = base06;
all_cpu_color = base06;
2023-12-18 08:15:18 +00:00
avg_cpu_color = "#eba0ac";
cpu_core_colors = [base08 base09 base0A base0B "#74c7ec" base0E];
ram_color = base0B;
swap_color = base09;
rx_color = base0B;
tx_color = base08;
widget_title_color = base0F;
border_color = base02;
highlighted_border_color = base07;
text_color = base04;
2023-12-18 08:15:18 +00:00
graph_color = "#a6adc8";
cursor_color = "#f5c2e7";
selected_text_color = base05;
selected_bg_color = base0E;
high_battery_color = base0B;
medium_battery_color = base0A;
low_battery_color = base08;
gpu_core_colors = ["#74c7ec" base0E base08 base09 base0A base0B];
2023-12-18 08:15:18 +00:00
arc_color = "#89dceb";
};
};
carapace = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
};
eza = {
enable = true;
git = true;
icons = true;
enableAliases = true;
2024-01-30 14:21:50 +00:00
extraOptions = ["--octal-permissions"];
};
readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
direnv = {
enable = true;
nix-direnv.enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
};
fzf = {
enable = true;
enableBashIntegration = true;
defaultCommand = "${pkgs.fd}/bin/fd --type f";
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
};
git = {
enable = true;
userName = "Evie Litherland-Smith";
userEmail = lib.mkDefault "evie@xenia.me.uk";
delta = {
enable = true;
options = {
line-numbers = true;
hyprlinks = true;
navigate = true;
side-by-side = true;
2023-12-18 08:15:18 +00:00
syntax-theme = bat.config.theme;
};
};
extraConfig = {
2023-11-29 07:45:23 +00:00
github.user = "elitherl";
2024-01-26 07:17:04 +00:00
gitea.user = "xenia";
pull.rebase = false;
init.defaultBranch = "main";
merge.conflictstyle = "diff3";
diff.colorMoved = "default";
};
};
ssh = {
enable = true;
forwardAgent = true;
addKeysToAgent = "yes";
compression = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "10s";
extraConfig = ''
SetEnv TERM=xterm-256color
'';
matchBlocks = {
"git*".user = "git";
"legion" = {
user = "xenia";
hostname = "192.168.1.230";
};
"ionos" = {
user = "root";
hostname = "77.68.67.133";
};
"freia" = {
user = "elitherl";
hostname = "freia020.hpc.l";
};
"heimdall" = {
user = "elitherl";
hostname = "heimdall003.jet.uk";
};
};
};
starship = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
enableTransience = true;
settings = {
2024-01-30 14:21:50 +00:00
c = {symbol = " ";};
command_timeout = 1000;
2024-01-30 14:21:50 +00:00
container = {symbol = " ";};
add_newline = false;
character = {
success_symbol = "[!](bold green)";
error_symbol = "[?](bold red)";
};
directory = {
truncation_length = 2;
fish_style_pwd_dir_length = 1;
read_only = "󰉐 ";
truncate_to_repo = false;
};
line_break.disabled = false;
git_branch = {
symbol = " ";
only_attached = true;
2024-01-30 14:21:50 +00:00
ignore_branches = ["master" "main"];
};
git_commit = {
format = "[󰜘 $hash | $tag]($style) ";
tag_symbol = "󰓹 ";
tag_disabled = false;
};
git_metrics.disabled = false;
git_status = {
stashed = "󰁯 ";
ahead = "󰁝 ";
behind = "󰁅 ";
up_to_date = "";
diverged = "󰹹 ";
conflicted = "󰦎 ";
deleted = " ";
renamed = " ";
modified = " ";
staged = " ";
untracked = " ";
typechanged = " ";
};
2024-01-30 14:21:50 +00:00
golang = {symbol = " ";};
guix_shell = {symbol = " ";};
haskell = {symbol = " ";};
hostname = {
ssh_only = true;
ssh_symbol = "󰢹 ";
};
2024-01-30 14:21:50 +00:00
java = {symbol = " ";};
localip = {disabled = false;};
lua = {symbol = " ";};
memory_usage = {
disabled = false;
symbol = "󰍛 ";
};
nix_shell.symbol = "󱄅 ";
os = {
disabled = false;
format = "on [$symbol]($style) ";
style = "bold blue";
symbols = {
Alpine = " ";
Android = " ";
Arch = " ";
CentOS = " ";
Debian = " ";
EndeavourOS = " ";
Fedora = " ";
FreeBSD = " ";
Gentoo = " ";
Illumos = " ";
Linux = " ";
Macos = " ";
Manjaro = " ";
Mint = "󰣭 ";
NixOS = " ";
OpenBSD = " ";
openSUSE = " ";
Pop = " ";
Raspbian = " ";
Redhat = " ";
RedHatEnterprise = " ";
Solus = " ";
SUSE = " ";
Ubuntu = " ";
Unknown = " ";
Windows = " ";
};
};
2024-01-30 14:21:50 +00:00
package = {symbol = "󰏗 ";};
python = {
symbol = "󰌠 ";
python_binary = "python3";
};
2024-01-30 14:21:50 +00:00
rust = {symbol = "󱘗 ";};
shell = {
disabled = false;
format = "using [$indicator ]($style)";
bash_indicator = "#";
nu_indicator = "ν";
unknown_indicator = "?";
};
2024-01-30 14:21:50 +00:00
status = {};
sudo = {
disabled = false;
symbol = "󰪋 ";
};
};
};
};
}