feat(home): Add options to disable dev config

Also added an option to set neovim a the manpager
This commit is contained in:
Jalil David Salamé Messina 2024-02-24 13:33:32 +01:00
parent b7c498a4fe
commit d08d05450d
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -147,13 +147,22 @@ in
description = lib.mdDoc "Setup development environment for programming languages."; description = lib.mdDoc "Setup development environment for programming languages.";
default = { }; default = { };
type = types.submodule { 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.extraPackages = mkExtraPackagesOption "dev" [ [ "typos" ] [ "just" ] [ "git-absorb" ] ];
options.rust = lib.mkOption { options.rust = lib.mkOption {
description = "Jalil's default rust configuration."; description = "Jalil's default rust configuration.";
default = { }; default = { };
type = types.submodule { type = types.submodule {
options.enable = lib.mkEnableOption "rust dev environment"; options.enable = lib.mkEnableOption "rust development settings";
options.extraPackages = mkExtraPackagesOption "Rust" [ [ "cargo-nextest" ] [ "cargo-sort" ] [ "cargo-msrv" ] [ "cargo-kcov" ] [ "cargo-watch" ] ]; options.extraPackages = mkExtraPackagesOption "Rust" [
[ "rust-analyzer" ]
[ "cargo-nextest" ]
[ "cargo-sort" ]
[ "cargo-msrv" ]
[ "cargo-kcov" ]
[ "cargo-watch" ]
];
}; };
}; };
}; };