From 4e85e68b9d5da240ff7c604d8647582e8e20088f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Tue, 2 Jul 2024 09:53:07 +0200 Subject: [PATCH] [fix] nixos: remove big packages Remove big packages (gcc & clang) from the default configuration (gate it behind the dev configuration). --- home/default.nix | 1 - home/options.nix | 3 +++ system/default.nix | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home/default.nix b/home/default.nix index f0d84c7..97a268e 100644 --- a/home/default.nix +++ b/home/default.nix @@ -105,7 +105,6 @@ in { pkgs.gopass pkgs.sshfs pkgs.gitoxide - pkgs.xplr ]; # Extra variables sessionVariables = { diff --git a/home/options.nix b/home/options.nix index 03a20de..b8a9d30 100644 --- a/home/options.nix +++ b/home/options.nix @@ -172,9 +172,11 @@ in { enable = lib.mkEnableOption "development settings" // {default = fromConfig ["dev" "enable"] false;}; neovimAsManPager = lib.mkEnableOption "neovim as the man pager"; extraPackages = mkExtraPackagesOption "dev" [ + ["clang"] # LLVM C lang compiler ["jq"] # json parser ["just"] # just a command runner ["typos"] # low false positive rate typo checker + ["gcc"] # GNU Compiler Collection ["git-absorb"] # fixup! but automatic ["man-pages"] # gimme the man pages ["man-pages-posix"] # I said gimme the man pages!!! @@ -190,6 +192,7 @@ in { ["cargo-msrv"] # minimum supported version ["cargo-nextest"] # better testing harness ["cargo-sort"] # sort deps and imports + ["cargo-udeps"] # check for unused dependencies (requires nightly) ["cargo-watch"] # watch for file changes and run commands ]; }; diff --git a/system/default.nix b/system/default.nix index 5fc137d..3548534 100644 --- a/system/default.nix +++ b/system/default.nix @@ -32,9 +32,6 @@ in { security.pam.services.login.gnupg.enable = true; environment.systemPackages = [ - # Dev tools - pkgs.gcc - pkgs.clang # CLI tools pkgs.fd pkgs.bat -- 2.47.0