Merge all dev modules together

Unlike applications which are usually independent of each other,
development tools are often used as needed.
This commit is contained in:
Donovan Glover 2023-05-25 00:35:41 -04:00
parent aeb0eff9df
commit 93d9693f4c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
5 changed files with 53 additions and 68 deletions

View File

@ -1,12 +1,41 @@
{ pkgs, ... }:
{
imports = [
./editorconfig
./nix
./npm
./rust
];
programs.npm.enable = true;
home-manager.sharedModules = [{
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
insert_final_newline = true;
indent_size = 2;
indent_style = "space";
trim_trailing_whitespace = true;
};
"*.md".indent_style = "tab";
"Makefile" = {
indent_style = "tab";
indent_size = 4;
};
"*.html" = {
indent_style = "tab";
indent_size = 4;
};
"*.go" = {
indent_style = "tab";
indent_size = 4;
};
};
};
}];
environment.systemPackages = with pkgs; [
marksman
@ -14,5 +43,23 @@
lua-language-server
clang-tools
texlab
# nix
nil
nixfmt
nixos-generators
# node/yarn/deno
nodejs
yarn
deno
# rust
gcc
rustc
rustfmt
cargo
rust-analyzer
bacon
];
}

View File

@ -1,30 +0,0 @@
{
home-manager.sharedModules = [{
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
insert_final_newline = true;
indent_size = 2;
indent_style = "space";
trim_trailing_whitespace = true;
};
"*.md" = { indent_style = "tab"; };
"Makefile" = {
indent_style = "tab";
indent_size = 4;
};
"*.html" = {
indent_style = "tab";
indent_size = 4;
};
"*.go" = {
indent_style = "tab";
indent_size = 4;
};
};
};
}];
}

View File

@ -1,9 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nil
nixfmt
nixos-generators
];
}

View File

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
programs.npm.enable = true;
environment.systemPackages = with pkgs; [
nodejs
yarn
deno
];
}

View File

@ -1,12 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
gcc
rustc
rustfmt
cargo
rust-analyzer
bacon
];
}