shell organization
This commit is contained in:
10
modules/home-manager/bash.nix
Normal file
10
modules/home-manager/bash.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
flake.homeModules.bash = { pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
package = pkgs.bash;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,19 +1,27 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
flake.homeModules.shell = {pkgs, ...}: {
|
imports = with inputs.self.homeModules; [
|
||||||
|
# Shells
|
||||||
|
bash
|
||||||
|
zsh
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
files
|
||||||
|
docker
|
||||||
|
];
|
||||||
|
|
||||||
|
flake.homeModules.shell = {pkgs, ...}:
|
||||||
|
{
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.eza;
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
extraOptions = [
|
|
||||||
"-lgos type --no-time"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = with inputs.self.homeModules; [
|
home.shell.enableShellIntegration = true;
|
||||||
zsh
|
home.shellAliases = {
|
||||||
files
|
ls = "${lib.getExe pkgs.eza} -lgos type --no-time --follow-symlinks";
|
||||||
docker
|
};
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
{ inputs, ... }:
|
|
||||||
{
|
{
|
||||||
flake.homeModules.zsh = { pkgs, config, lib, ... }:
|
flake.homeModules.zsh = { pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
|
||||||
zsh
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.zsh;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
# syntaxHighlighting.enable = true;
|
# syntaxHighlighting.enable = true;
|
||||||
@@ -36,7 +32,6 @@
|
|||||||
"ssh-agent"
|
"ssh-agent"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
shellAliases.ls = "${lib.getExe pkgs.eza} -lgos type --no-time --follow-symlinks";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user