tmux: setup for servers
This commit is contained in:
parent
5ce026332c
commit
e515aae340
6 changed files with 70 additions and 60 deletions
|
|
@ -18,6 +18,11 @@
|
||||||
home = {
|
home = {
|
||||||
inherit stateVersion;
|
inherit stateVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
catppuccin = {
|
||||||
|
flavor = "mocha";
|
||||||
|
accent = "lavender";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos.base =
|
nixos.base =
|
||||||
|
|
|
||||||
|
|
@ -37,15 +37,16 @@
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
set -x LESS_TERMCAP_mb \e'[01;32m'
|
# Auto-start Tmux on SSH login
|
||||||
set -x LESS_TERMCAP_md \e'[01;32m'
|
if test -n "$SSH_TTY" && test -z "$TMUX"
|
||||||
set -x LESS_TERMCAP_me \e'[0m'
|
if command -v tmux > /dev/null 2>&1
|
||||||
set -x LESS_TERMCAP_se \e'[0m'
|
if tmux has-session -t ssh-auto 2>/dev/null
|
||||||
set -x LESS_TERMCAP_so \e'[01;47;34m'
|
tmux attach-session -t ssh-auto
|
||||||
set -x LESS_TERMCAP_ue \e'[0m'
|
else
|
||||||
set -x LESS_TERMCAP_us \e'[01;36m'
|
tmux new-session -s ssh-auto
|
||||||
set -x LESS -R
|
end
|
||||||
set -x GROFF_NO_SGR 1
|
end
|
||||||
|
end
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
vim = "hx";
|
vim = "hx";
|
||||||
|
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
flake.modules = {
|
|
||||||
homeManager.cholli =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
catppuccin.kitty.enable = true;
|
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
pkgs.kitty
|
|
||||||
];
|
|
||||||
|
|
||||||
home.sessionVariables.TERMINAL = "kitty";
|
|
||||||
|
|
||||||
home.file.".config/Thunar/uca.xml".text = ''
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<actions>
|
|
||||||
<action>
|
|
||||||
<icon>kitty</icon>
|
|
||||||
<name>Open Kitty here</name>
|
|
||||||
<submenu></submenu>
|
|
||||||
<unique-id>1726095927116900-1</unique-id>
|
|
||||||
<command>${pkgs.kitty}/bin/kitty %f</command>
|
|
||||||
<description>Example for a custom action</description>
|
|
||||||
<range></range>
|
|
||||||
<patterns>*</patterns>
|
|
||||||
<startup-notify/>
|
|
||||||
<directories/>
|
|
||||||
</action>
|
|
||||||
</actions>
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
# themeFile = "tokyo_night_night";
|
|
||||||
font = {
|
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 15;
|
|
||||||
};
|
|
||||||
shellIntegration.enableFishIntegration = true;
|
|
||||||
settings = {
|
|
||||||
"background_opacity" = "0.90";
|
|
||||||
"shell" = "fish";
|
|
||||||
"confirm_os_window_close" = "0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
37
modules/base/home/terminal.nix
Normal file
37
modules/base/home/terminal.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
flake.modules = {
|
||||||
|
homeManager.cholli =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
catppuccin.kitty.enable = true;
|
||||||
|
|
||||||
|
home.sessionVariables.TERMINAL = "kitty";
|
||||||
|
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
name = "FiraCode Nerd Font";
|
||||||
|
size = 15;
|
||||||
|
};
|
||||||
|
shellIntegration.enableFishIntegration = true;
|
||||||
|
settings = {
|
||||||
|
"background_opacity" = "0.90";
|
||||||
|
"shell" = "fish";
|
||||||
|
"confirm_os_window_close" = "0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
catppuccin.ghostty.enable = true;
|
||||||
|
programs.ghostty = {
|
||||||
|
enableFishIntegration = true;
|
||||||
|
installVimSyntax = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -70,8 +70,6 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil" && osConfig.programs.niri.enable) {
|
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil" && osConfig.programs.niri.enable) {
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
flavor = "mocha";
|
|
||||||
accent = "lavender";
|
|
||||||
cursors = {
|
cursors = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
18
modules/server/default.nix
Normal file
18
modules/server/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixos.server =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
clock24 = true;
|
||||||
|
newSession = true;
|
||||||
|
keyMode = "vi";
|
||||||
|
terminal = "ghostty";
|
||||||
|
extraConfig = ''
|
||||||
|
set -g mouse on
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue