bash
This commit is contained in:
28
home-manager/programs/terminal/bash/default.nix
Normal file
28
home-manager/programs/terminal/bash/default.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ oh-my-posh ];
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
blesh.enable = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
ls = "eza";
|
||||||
|
ll = "ls -l";
|
||||||
|
|
||||||
|
ksh = "kitten ssh";
|
||||||
|
|
||||||
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
||||||
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
|
'') else (lib.mkBefore ''
|
||||||
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
|
'');
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./bat
|
./bat
|
||||||
|
./bash
|
||||||
./eza
|
./eza
|
||||||
./fzf
|
./fzf
|
||||||
./tmux
|
./tmux
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
./dotfiles
|
./dotfiles
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf (config.homeconfig.username == "nathan") {
|
config = {
|
||||||
|
|
||||||
homeconfig = {
|
homeconfig = {
|
||||||
mpd.enable = lib.mkDefault true;
|
mpd.enable = lib.mkDefault true;
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
graphical = config.sysconfig.graphical;
|
graphical = config.sysconfig.graphical;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
] ++ (if inputs ? ${x} then [ (inputs.${x} { config = config.home-manager.users.${x}; inherit lib pkgs inputs; }) ] else [])
|
] ++ (if inputs ? ${x} then [ (inputs.${x} /*{ config = config.home-manager.users.${x}; inherit lib pkgs inputs; }*/) ] else [])
|
||||||
++ config.sysconfig.users.${x}.home-manager.extraModules));
|
++ config.sysconfig.users.${x}.home-manager.extraModules));
|
||||||
})
|
})
|
||||||
(builtins.partition
|
(builtins.partition
|
||||||
|
|||||||
Reference in New Issue
Block a user