home-manager: make the hm modules match the nixos ones

This commit is contained in:
Veneficium 2024-11-05 17:45:56 +01:00
parent 4fc501b1e2
commit 32a5ebf118
16 changed files with 256 additions and 98 deletions

View 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;
};
};
}

View file

@ -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
])
);
};
}