hm-modules: the great refactoring part 1
This commit is contained in:
parent
1b2f5d6094
commit
b7ccaf8285
11 changed files with 29 additions and 39 deletions
|
|
@ -7,7 +7,6 @@
|
|||
{
|
||||
options.settings.development.rust = {
|
||||
enable = lib.mkEnableOption "enable rust toolchain and various dev tools";
|
||||
enableVSCode = lib.mkEnableOption "enable VSCode extension for rust";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.development.rust.enable {
|
||||
|
|
@ -17,15 +16,5 @@
|
|||
rustfmt
|
||||
rust-analyzer
|
||||
];
|
||||
|
||||
programs.vscode.extensions = lib.mkIf config.settings.development.rust.enableVSCode (
|
||||
with pkgs.vscode-extensions;
|
||||
[
|
||||
rust-lang.rust-analyzer
|
||||
]
|
||||
++ (with pkgs.open-vsx; [
|
||||
tamasfe.even-better-toml
|
||||
])
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue