Updated configuration
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.screen ];
|
||||
home.file.".screenrc".text = ''
|
||||
startup_message off
|
||||
defbce on
|
||||
setenv TERM xterm-256color
|
||||
'';
|
||||
}
|
||||
6
home/panotaka/common/core/shell/atuin.nix
Normal file
6
home/panotaka/common/core/shell/atuin.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
flags = ["--disable-up-arrow"];
|
||||
};
|
||||
}
|
||||
5
home/panotaka/common/core/shell/autojump.nix
Normal file
5
home/panotaka/common/core/shell/autojump.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
programs.autojump = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
5
home/panotaka/common/core/shell/bat.nix
Normal file
5
home/panotaka/common/core/shell/bat.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
5
home/panotaka/common/core/shell/btop.nix
Normal file
5
home/panotaka/common/core/shell/btop.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
9
home/panotaka/common/core/shell/carapace.nix
Normal file
9
home/panotaka/common/core/shell/carapace.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
programs.carapace = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
||||
18
home/panotaka/common/core/shell/default.nix
Normal file
18
home/panotaka/common/core/shell/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
14
home/panotaka/common/core/shell/eza.nix
Normal file
14
home/panotaka/common/core/shell/eza.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{...}: {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
extraOptions = [
|
||||
"--group-directories-first"
|
||||
"--header"
|
||||
];
|
||||
icons = "auto";
|
||||
};
|
||||
|
||||
home.shellAliases = {
|
||||
l = "eza -1 --group-directories-first";
|
||||
};
|
||||
}
|
||||
5
home/panotaka/common/core/shell/rip.nix
Normal file
5
home/panotaka/common/core/shell/rip.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
rm-improved
|
||||
];
|
||||
}
|
||||
11
home/panotaka/common/core/shell/tldr.nix
Normal file
11
home/panotaka/common/core/shell/tldr.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
#tlrc
|
||||
];
|
||||
|
||||
services.tldr-update = {
|
||||
enable = true;
|
||||
package = pkgs.tlrc;
|
||||
period = "weekly";
|
||||
};
|
||||
}
|
||||
13
home/panotaka/common/core/shell/zellij.nix
Normal file
13
home/panotaka/common/core/shell/zellij.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
home/panotaka/common/core/shell/zoxide.nix
Normal file
9
home/panotaka/common/core/shell/zoxide.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user