fix: remove most of the lib.mkDefaults to stop quirks

This commit is contained in:
Youwen Wu 2024-08-07 08:43:27 -07:00
parent 6155b9062a
commit c3354e3609
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.bash.enable = pkgs.lib.mkDefault true; programs.bash.enable = true;
programs.nushell = pkgs.lib.mkDefault { programs.nushell = {
enable = true; enable = true;
configFile.text = '' configFile.text = ''
$env.config = { $env.config = {
@ -10,21 +10,21 @@
''; '';
}; };
programs.fzf = pkgs.lib.mkDefault { enable = true; }; programs.fzf = { enable = true; };
programs.git = pkgs.lib.mkDefault { programs.git = {
enable = true; enable = true;
userName = "Youwen Wu"; userName = "Youwen Wu";
userEmail = "youwenw@gmail.com"; userEmail = "youwenw@gmail.com";
delta.enable = true; delta.enable = true;
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
commit.gpgsign = "true"; commit.gpgsign = pkgs.lib.mkDefault "true";
user.signingkey = "8F5E6C1AF90976CA7102917A865658ED1FE61EC3"; user.signingkey = "8F5E6C1AF90976CA7102917A865658ED1FE61EC3";
}; };
}; };
programs.lazygit = pkgs.lib.mkDefault { programs.lazygit = {
enable = true; enable = true;
settings = { settings = {
git.paging = { git.paging = {
@ -34,28 +34,28 @@
}; };
}; };
programs.bat.enable = pkgs.lib.mkDefault true; programs.bat.enable = true;
programs.ripgrep.enable = pkgs.lib.mkDefault true; programs.ripgrep.enable = true;
programs.readline = { programs.readline = {
enable = true; enable = true;
extraConfig = "set editing-mode vi"; extraConfig = "set editing-mode vi";
}; };
programs.zoxide = pkgs.lib.mkDefault { programs.zoxide = {
enable = true; enable = true;
# enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
}; };
programs.gh = pkgs.lib.mkDefault { programs.gh = {
enable = true; enable = true;
extensions = [ pkgs.github-copilot-cli ]; extensions = [ pkgs.github-copilot-cli ];
}; };
programs.oh-my-posh = pkgs.lib.mkDefault { programs.oh-my-posh = {
enable = true; enable = true;
# enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true; enableFishIntegration = true;
@ -124,9 +124,9 @@
]; ];
}; };
programs.fd.enable = pkgs.lib.mkDefault true; programs.fd.enable = true;
programs.btop = pkgs.lib.mkDefault { programs.btop = {
enable = true; enable = true;
settings = { settings = {
color_theme = "tokyo-night"; color_theme = "tokyo-night";
@ -135,13 +135,13 @@
}; };
}; };
programs.eza = pkgs.lib.mkDefault { programs.eza = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
}; };
programs.neovim = pkgs.lib.mkDefault { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;