refactor: use mkDefault on all options in common

This commit is contained in:
Youwen Wu 2024-08-05 03:23:18 -07:00
parent a164cd2d2f
commit 3a917eb837

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.bash.enable = true; programs.bash.enable = pkgs.lib.mkDefault true;
programs.nushell = { programs.nushell = pkgs.lib.mkDefault {
enable = true; enable = true;
configFile.text = '' configFile.text = ''
$env.config = { $env.config = {
@ -10,7 +10,7 @@
''; '';
}; };
programs.fzf = { programs.fzf = pkgs.lib.mkDefault {
enable = true; enable = true;
}; };
@ -26,7 +26,7 @@
}; };
}; };
programs.lazygit = { programs.lazygit = pkgs.lib.mkDefault {
enable = true; enable = true;
settings = { settings = {
git.paging = { git.paging = {
@ -36,28 +36,28 @@
}; };
}; };
programs.bat.enable = true; programs.bat.enable = pkgs.lib.mkDefault true;
programs.ripgrep.enable = true; programs.ripgrep.enable = pkgs.lib.mkDefault true;
programs.readline = { programs.readline = {
enable = true; enable = true;
extraConfig = "set editing-mode vi"; extraConfig = "set editing-mode vi";
}; };
programs.zoxide = { programs.zoxide = pkgs.lib.mkDefault {
enable = true; enable = true;
# enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
}; };
programs.gh = { programs.gh = pkgs.lib.mkDefault {
enable = true; enable = true;
extensions = [ pkgs.github-copilot-cli ]; extensions = [ pkgs.github-copilot-cli ];
}; };
programs.oh-my-posh = { programs.oh-my-posh = pkgs.lib.mkDefault {
enable = true; enable = true;
# enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true; enableFishIntegration = true;
@ -126,9 +126,9 @@
]; ];
}; };
programs.fd.enable = true; programs.fd.enable = pkgs.lib.mkDefault true;
programs.btop = { programs.btop = pkgs.lib.mkDefault {
enable = true; enable = true;
settings = { settings = {
color_theme = "tokyo-night"; color_theme = "tokyo-night";
@ -137,13 +137,13 @@
}; };
}; };
programs.eza = { programs.eza = pkgs.lib.mkDefault {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
}; };
programs.neovim = { programs.neovim = pkgs.lib.mkDefault {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;