From d08d05450dd99ec0f4914b35b92dcd4cdd6411f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 24 Feb 2024 13:33:32 +0100 Subject: [PATCH] feat(home): Add options to disable dev config Also added an option to set neovim a the manpager --- home/options.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/home/options.nix b/home/options.nix index 298146e..a3f6c8a 100644 --- a/home/options.nix +++ b/home/options.nix @@ -147,13 +147,22 @@ in description = lib.mdDoc "Setup development environment for programming languages."; default = { }; type = types.submodule { + options.enable = lib.mkEnableOption "development settings"; + options.neovimAsManPager = lib.mkEnableOption "neovim as the man pager"; options.extraPackages = mkExtraPackagesOption "dev" [ [ "typos" ] [ "just" ] [ "git-absorb" ] ]; options.rust = lib.mkOption { description = "Jalil's default rust configuration."; default = { }; type = types.submodule { - options.enable = lib.mkEnableOption "rust dev environment"; - options.extraPackages = mkExtraPackagesOption "Rust" [ [ "cargo-nextest" ] [ "cargo-sort" ] [ "cargo-msrv" ] [ "cargo-kcov" ] [ "cargo-watch" ] ]; + options.enable = lib.mkEnableOption "rust development settings"; + options.extraPackages = mkExtraPackagesOption "Rust" [ + [ "rust-analyzer" ] + [ "cargo-nextest" ] + [ "cargo-sort" ] + [ "cargo-msrv" ] + [ "cargo-kcov" ] + [ "cargo-watch" ] + ]; }; }; };