From 7ff8541a18eba37ef8ecaca48fcd1b6624dfad54 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 1/4] 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 ]; }; }; From f1cbc56aba60cf3ca0335890a4340f03a0d682b2 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 2/4] 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; 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 3/4] 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 ]; }; }; 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 4/4] 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;