feat(home): Add options to disable dev config
Also added an option to set neovim a the manpager
This commit is contained in:
parent
b7c498a4fe
commit
d08d05450d
1 changed files with 11 additions and 2 deletions
|
@ -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" ]
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue