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, ... }: {
programs.bash.enable = true;
programs.nushell = {
programs.bash.enable = pkgs.lib.mkDefault true;
programs.nushell = pkgs.lib.mkDefault {
enable = true;
configFile.text = ''
$env.config = {
@ -10,7 +10,7 @@
'';
};
programs.fzf = {
programs.fzf = pkgs.lib.mkDefault {
enable = true;
};
@ -26,7 +26,7 @@
};
};
programs.lazygit = {
programs.lazygit = pkgs.lib.mkDefault {
enable = true;
settings = {
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 = {
enable = true;
extraConfig = "set editing-mode vi";
};
programs.zoxide = {
programs.zoxide = pkgs.lib.mkDefault {
enable = true;
# enableZshIntegration = true;
enableFishIntegration = true;
enableNushellIntegration = true;
};
programs.gh = {
programs.gh = pkgs.lib.mkDefault {
enable = true;
extensions = [ pkgs.github-copilot-cli ];
};
programs.oh-my-posh = {
programs.oh-my-posh = pkgs.lib.mkDefault {
enable = true;
# enableZshIntegration = 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;
settings = {
color_theme = "tokyo-night";
@ -137,13 +137,13 @@
};
};
programs.eza = {
programs.eza = pkgs.lib.mkDefault {
enable = true;
enableFishIntegration = true;
enableBashIntegration = true;
};
programs.neovim = {
programs.neovim = pkgs.lib.mkDefault {
enable = true;
defaultEditor = true;
viAlias = true;