Updated configuration

This commit is contained in:
2025-05-26 23:55:11 -03:00
parent 0dfa99f638
commit 3c9d9e9529
20 changed files with 440 additions and 123 deletions

View File

@@ -19,13 +19,11 @@ in {
./${platform}.nix
# FIXME(starter): add/edit as desired
./fish.nix
./bash.nix
./direnv.nix
./fonts.nix
./kitty.nix
./git.nix
./ssh.nix
./shell
];
inherit hostSpec;

View File

@@ -1,9 +0,0 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.screen ];
home.file.".screenrc".text = ''
startup_message off
defbce on
setenv TERM xterm-256color
'';
}

View File

@@ -0,0 +1,6 @@
{
programs.atuin = {
enable = true;
flags = ["--disable-up-arrow"];
};
}

View File

@@ -0,0 +1,5 @@
{...}: {
programs.autojump = {
enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{
programs.bat = {
enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{
programs.btop = {
enable = true;
};
}

View File

@@ -0,0 +1,9 @@
{
programs.carapace = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
enableFishIntegration = true;
};
}

View File

@@ -0,0 +1,18 @@
# FIXME(starter): customize your bash preferences here
{
imports = [
./atuin.nix
./autojump.nix
./bash.nix
./bat.nix
./btop.nix
./carapace.nix
./direnv.nix
./eza.nix
./fish.nix
./rip.nix
./tldr.nix
./zellij.nix
./zoxide.nix
];
}

View File

@@ -3,6 +3,7 @@
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
#enableFishIntegration = true;
nix-direnv.enable = true; # better than native direnv nix functionality - https://github.com/nix-community/nix-direnv
};
}

View File

@@ -0,0 +1,14 @@
{...}: {
programs.eza = {
enable = true;
extraOptions = [
"--group-directories-first"
"--header"
];
icons = "auto";
};
home.shellAliases = {
l = "eza -1 --group-directories-first";
};
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
rm-improved
];
}

View File

@@ -0,0 +1,11 @@
{pkgs, ...}: {
home.packages = with pkgs; [
#tlrc
];
services.tldr-update = {
enable = true;
package = pkgs.tlrc;
period = "weekly";
};
}

View File

@@ -0,0 +1,13 @@
{
programs.zellij = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
settings = {
#simplified_ui = true;
pane_frames = false;
copy_on_select = false;
};
};
}

View File

@@ -0,0 +1,9 @@
{
programs.zoxide = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
enableFishIntegration = true;
};
}

View File

@@ -1,22 +1,17 @@
# FIXME(starter): adjust to you security requirements
{
config,
...
}:
{
programs.ssh =
{
enable = true;
{config, ...}: {
programs.ssh = {
enable = true;
controlMaster = "auto";
controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p";
controlPersist = "20m";
# Avoids infinite hang if control socket connection interrupted. ex: vpn goes down/up
serverAliveCountMax = 3;
serverAliveInterval = 5; # 3 * 5s
hashKnownHosts = true;
addKeysToAgent = "yes";
};
controlMaster = "auto";
controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p";
controlPersist = "20m";
# Avoids infinite hang if control socket connection interrupted. ex: vpn goes down/up
serverAliveCountMax = 3;
serverAliveInterval = 5; # 3 * 5s
hashKnownHosts = true;
addKeysToAgent = "yes";
};
home.file = {
".ssh/config.d/.keep".text = "# Managed by Home Manager";
".ssh/sockets/.keep".text = "# Managed by Home Manager";