2024-01-31 08:31:25 +00:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
2024-02-03 08:26:13 +00:00
|
|
|
|
imports = [./nushell/default.nix ./config/default.nix ./scripts/default.nix];
|
2024-02-03 09:51:42 +00:00
|
|
|
|
stylix.targets = {
|
|
|
|
|
fzf.enable = true;
|
|
|
|
|
zellij.enable = true;
|
|
|
|
|
};
|
2023-12-18 08:15:18 +00:00
|
|
|
|
programs = rec {
|
2023-09-20 09:00:22 +01:00
|
|
|
|
bash.enable = true;
|
2023-12-18 08:15:18 +00:00
|
|
|
|
bat = {
|
|
|
|
|
enable = true;
|
|
|
|
|
config.theme = "Catppuccin-mocha";
|
|
|
|
|
};
|
|
|
|
|
bottom = {
|
|
|
|
|
enable = true;
|
2024-01-31 08:31:25 +00:00
|
|
|
|
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";
|
2024-01-31 08:31:25 +00:00
|
|
|
|
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";
|
2024-01-31 08:31:25 +00:00
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-02-03 07:56:59 +00:00
|
|
|
|
carapace = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
enableNushellIntegration = true;
|
|
|
|
|
};
|
2023-11-29 07:17:41 +00:00
|
|
|
|
eza = {
|
|
|
|
|
enable = true;
|
|
|
|
|
git = true;
|
|
|
|
|
icons = true;
|
2024-02-03 09:25:34 +00:00
|
|
|
|
enableAliases = false;
|
2024-01-30 14:21:50 +00:00
|
|
|
|
extraOptions = ["--octal-permissions"];
|
2023-11-29 07:17:41 +00:00
|
|
|
|
};
|
2023-09-20 09:00:22 +01:00
|
|
|
|
readline = {
|
|
|
|
|
enable = true;
|
|
|
|
|
includeSystemConfig = true;
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
set completion-ignore-case On
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
direnv = {
|
|
|
|
|
enable = true;
|
|
|
|
|
nix-direnv.enable = true;
|
2024-02-03 07:56:59 +00:00
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
enableNushellIntegration = true;
|
2023-09-20 09:00:22 +01:00
|
|
|
|
};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
fzf = {
|
|
|
|
|
enable = true;
|
2024-02-03 07:56:59 +00:00
|
|
|
|
enableBashIntegration = true;
|
2024-01-31 08:31:25 +00:00
|
|
|
|
defaultCommand = "${pkgs.fd}/bin/fd --type f";
|
|
|
|
|
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
|
|
|
|
|
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userName = "Evie Litherland-Smith";
|
|
|
|
|
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
|
|
|
|
delta = {
|
|
|
|
|
enable = true;
|
|
|
|
|
options = {
|
|
|
|
|
line-numbers = true;
|
2023-10-20 15:23:16 +01:00
|
|
|
|
hyprlinks = true;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
navigate = true;
|
|
|
|
|
side-by-side = true;
|
2023-12-18 08:15:18 +00:00
|
|
|
|
syntax-theme = bat.config.theme;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
extraConfig = {
|
2023-11-29 07:45:23 +00:00
|
|
|
|
github.user = "elitherl";
|
2024-01-26 07:17:04 +00:00
|
|
|
|
gitea.user = "xenia";
|
2023-12-19 14:46:38 +00:00
|
|
|
|
pull.rebase = false;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
init.defaultBranch = "main";
|
2023-10-20 15:23:16 +01:00
|
|
|
|
merge.conflictstyle = "diff3";
|
|
|
|
|
diff.colorMoved = "default";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
ssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
forwardAgent = true;
|
2024-01-05 07:35:37 +00:00
|
|
|
|
addKeysToAgent = "yes";
|
|
|
|
|
compression = true;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
serverAliveInterval = 15;
|
|
|
|
|
serverAliveCountMax = 3;
|
|
|
|
|
controlMaster = "auto";
|
|
|
|
|
controlPersist = "10s";
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
SetEnv TERM=xterm-256color
|
|
|
|
|
'';
|
|
|
|
|
matchBlocks = {
|
2023-10-20 15:23:16 +01:00
|
|
|
|
"git*".user = "git";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
"legion" = {
|
2023-12-12 06:58:43 +00:00
|
|
|
|
user = "xenia";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
hostname = "192.168.1.230";
|
|
|
|
|
};
|
|
|
|
|
"ionos" = {
|
|
|
|
|
user = "root";
|
|
|
|
|
hostname = "77.68.67.133";
|
|
|
|
|
};
|
2023-10-20 15:23:16 +01:00
|
|
|
|
"freia" = {
|
2023-10-09 11:40:25 +01:00
|
|
|
|
user = "elitherl";
|
2023-10-20 15:23:16 +01:00
|
|
|
|
hostname = "freia020.hpc.l";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
2023-11-02 11:04:49 +00:00
|
|
|
|
"heimdall" = {
|
|
|
|
|
user = "elitherl";
|
|
|
|
|
hostname = "heimdall003.jet.uk";
|
|
|
|
|
};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
starship = {
|
|
|
|
|
enable = true;
|
2024-02-03 07:56:59 +00:00
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
enableNushellIntegration = true;
|
2023-12-05 06:19:51 +00:00
|
|
|
|
enableTransience = true;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
settings = {
|
2024-01-30 14:21:50 +00:00
|
|
|
|
c = {symbol = " ";};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
command_timeout = 1000;
|
2024-01-30 14:21:50 +00:00
|
|
|
|
container = {symbol = " ";};
|
2024-01-18 06:18:56 +00:00
|
|
|
|
add_newline = false;
|
2023-10-09 11:40:25 +01:00
|
|
|
|
character = {
|
2024-01-18 06:18:56 +00:00
|
|
|
|
success_symbol = "[!](bold green)";
|
|
|
|
|
error_symbol = "[?](bold red)";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
directory = {
|
|
|
|
|
truncation_length = 2;
|
|
|
|
|
fish_style_pwd_dir_length = 1;
|
2024-01-18 06:18:56 +00:00
|
|
|
|
read_only = " ";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
truncate_to_repo = false;
|
|
|
|
|
};
|
|
|
|
|
line_break.disabled = false;
|
|
|
|
|
git_branch = {
|
2024-01-18 06:18:56 +00:00
|
|
|
|
symbol = " ";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
only_attached = true;
|
2024-01-30 14:21:50 +00:00
|
|
|
|
ignore_branches = ["master" "main"];
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
|
|
|
|
git_commit = {
|
2023-10-15 17:02:24 +01:00
|
|
|
|
format = "[ $hash | $tag]($style) ";
|
|
|
|
|
tag_symbol = " ";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
tag_disabled = false;
|
|
|
|
|
};
|
|
|
|
|
git_metrics.disabled = false;
|
2024-01-18 06:18:56 +00:00
|
|
|
|
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 = " ";};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
hostname = {
|
|
|
|
|
ssh_only = true;
|
|
|
|
|
ssh_symbol = " ";
|
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
|
java = {symbol = " ";};
|
|
|
|
|
localip = {disabled = false;};
|
|
|
|
|
lua = {symbol = " ";};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
memory_usage = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
symbol = " ";
|
|
|
|
|
};
|
|
|
|
|
nix_shell.symbol = " ";
|
|
|
|
|
os = {
|
|
|
|
|
disabled = false;
|
2024-01-18 06:18:56 +00:00
|
|
|
|
format = "on [$symbol]($style) ";
|
2023-10-15 12:27:16 +01:00
|
|
|
|
style = "bold blue";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
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 = " ";};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
python = {
|
|
|
|
|
symbol = " ";
|
|
|
|
|
python_binary = "python3";
|
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
|
rust = {symbol = " ";};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
shell = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
format = "using [$indicator ]($style)";
|
2024-02-03 07:56:59 +00:00
|
|
|
|
bash_indicator = "#";
|
|
|
|
|
nu_indicator = "ν";
|
|
|
|
|
unknown_indicator = "?";
|
2023-10-09 11:40:25 +01:00
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
|
status = {};
|
2023-10-09 11:40:25 +01:00
|
|
|
|
sudo = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
symbol = " ";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-02-03 09:51:42 +00:00
|
|
|
|
zellij = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
settings.default_layout = "compact";
|
|
|
|
|
};
|
2023-09-20 09:00:22 +01:00
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
|
}
|