From 3a917eb837d600efa3e2e64ab8f2dd18d5fc3e41 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 5 Aug 2024 03:23:18 -0700 Subject: [PATCH] refactor: use mkDefault on all options in common --- modules/home-manager/common/core.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/home-manager/common/core.nix b/modules/home-manager/common/core.nix index ca750f9..e4c7e6e 100644 --- a/modules/home-manager/common/core.nix +++ b/modules/home-manager/common/core.nix @@ -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;