From 54b6d5c5b2233a094e3c2309abc5d1e841209f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Tue, 1 Jul 2025 18:21:22 +0200 Subject: [PATCH 1/3] build: add nix-diff and nvd to the devshell This will allow me to check what is being included in the derivations and why. --- flake-modules/devshells.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake-modules/devshells.nix b/flake-modules/devshells.nix index c387269..f9eeaa4 100644 --- a/flake-modules/devshells.nix +++ b/flake-modules/devshells.nix @@ -4,8 +4,11 @@ _: { { devShells.default = pkgs.mkShellNoCC { buildInputs = [ - pkgs.just self'.packages.nvim + + pkgs.just + pkgs.nix-diff + pkgs.nvd pkgs.uv ]; QEMU_OPTS_WL = "-enable-kvm -nodefaults -m 4G -cpu host -smp 4 -device virtio-gpu"; -- 2.50.0 From ccbb59aafb10f9246fb3d9f0f78d68c80aea5b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Tue, 1 Jul 2025 18:26:46 +0200 Subject: [PATCH 2/3] feat!(config): remove unused cargo plugins I don't use `cargo-udeps` or `cargo-watch` anymore, remove them. --- modules/hm/options.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/hm/options.nix b/modules/hm/options.nix index e274f52..811384a 100644 --- a/modules/hm/options.nix +++ b/modules/hm/options.nix @@ -209,8 +209,6 @@ in options.extraPackages = mkExtraPackagesOption "Rust" [ [ "cargo-insta" ] # snapshot testing [ "cargo-nextest" ] # better testing harness - [ "cargo-udeps" ] # check for unused dependencies (requires nightly) - [ "cargo-watch" ] # watch for file changes and run commands ]; }; }; -- 2.50.0 From e283925ad0fe51222e975ecdecd4eaba09b0d242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Tue, 1 Jul 2025 18:34:29 +0200 Subject: [PATCH 3/3] fix(stylix): disable GUI toolkits & DEs when no GUI is requested Further reduce derivation size --- modules/hm/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/hm/default.nix b/modules/hm/default.nix index 98cb89a..2e5a8db 100644 --- a/modules/hm/default.nix +++ b/modules/hm/default.nix @@ -27,6 +27,16 @@ in targets.nixvim.enable = false; # I prefer styling it myself }; }) + (lib.mkIf (cfg.enable && cfg.styling.enable && !cfg.gui.enable) { + # Stylix disable graphical targets when no GUI is requested + stylix.targets = { + gtk.enable = false; + qt.enable = false; + gnome.enable = false; + kde.enable = false; + xresources.enable = false; + }; + }) (lib.mkIf cfg.enable { # Add gopass if pass is enabled home.packages = lib.optional config.programs.password-store.enable pkgs.gopass; -- 2.50.0