added shpool, ran nix fmt.

This commit is contained in:
Gabe Venberg 2026-01-19 14:40:26 +01:00
parent 0fe2f35093
commit 57c49eefed
16 changed files with 51 additions and 21 deletions

View file

@ -0,0 +1,21 @@
{
config,
pkgs,
lib,
...
}: {
services.shpool = {
enable = true;
settings = {
default_dir = ".";
prompt_prefix = "";
keybinding = [
{
action = "detach";
binding = "Ctrl-a d";
}
];
};
systemd = true;
};
}

View file

@ -10,6 +10,7 @@
format = lib.concatStrings [ format = lib.concatStrings [
"[](color_orange)" "[](color_orange)"
"$shell" "$shell"
"\${env_var.SHPOOL_SESSION_NAME}"
"$username" "$username"
"[@](bg:color_orange)" "[@](bg:color_orange)"
"$hostname" "$hostname"
@ -43,6 +44,13 @@
color_red = "#cc241d"; color_red = "#cc241d";
color_yellow = "#d79921"; color_yellow = "#d79921";
}; };
env_var.SHPOOL_SESSION_NAME = {
disabled = false;
symbol = "🌊";
variable = "SHPOOL_SESSION_NAME";
format = "[$symbol$env_value ]($style)";
style = "bg:color_orange";
};
hostname = { hostname = {
ssh_only = false; ssh_only = false;
ssh_symbol = "🌐"; ssh_symbol = "🌐";

View file

@ -10,8 +10,8 @@
../../configs/home-manager/direnv.nix ../../configs/home-manager/direnv.nix
../../configs/home-manager/ssh-agent.nix ../../configs/home-manager/ssh-agent.nix
../../configs/home-manager/zsh.nix ../../configs/home-manager/zsh.nix
../../configs/home-manager/zellij
../../configs/home-manager/yazi.nix ../../configs/home-manager/yazi.nix
../../configs/home-manager/shpool.nix
]; ];
user = { user = {

View file

@ -7,6 +7,7 @@
}: { }: {
imports = [ imports = [
./minimal-terminal.nix ./minimal-terminal.nix
../../configs/home-manager/zellij
../../configs/home-manager/nushell ../../configs/home-manager/nushell
../../configs/home-manager/starship.nix ../../configs/home-manager/starship.nix
../../configs/home-manager/zk.nix ../../configs/home-manager/zk.nix