home-manager: make the hm modules match the nixos ones
This commit is contained in:
parent
4fc501b1e2
commit
32a5ebf118
16 changed files with 256 additions and 98 deletions
13
homeManagerModules/development/bun.nix
Normal file
13
homeManagerModules/development/bun.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.development.bun = {
|
||||
enable = lib.mkEnableOption "enable bun for js development";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.development.bun.enable {
|
||||
programs.bun = {
|
||||
enable = true;
|
||||
enableGitIntegration = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,17 +1,30 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
];
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.settings.development.rust = {
|
||||
enable = lib.mkEnableOption "enable rust toolchain and various dev tools";
|
||||
enableVSCode = lib.mkEnableOption "enable VSCode extension for rust";
|
||||
};
|
||||
|
||||
programs.vscode.extensions =
|
||||
with pkgs.vscode-extensions;
|
||||
[
|
||||
rust-lang.rust-analyzer
|
||||
]
|
||||
++ (with pkgs.open-vsx; [
|
||||
tamasfe.even-better-toml
|
||||
]);
|
||||
config = lib.mkIf config.settings.development.rust.enable {
|
||||
home.packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
];
|
||||
|
||||
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