1
0
forked from extern/nix-config

nix: Merge dev with common

This commit is contained in:
Donovan Glover 2023-06-05 12:16:21 -04:00
parent 30ccf622f7
commit 757902868f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 63 additions and 68 deletions

View File

@ -47,6 +47,34 @@
slade slade
typespeed typespeed
osu-lazer-bin osu-lazer-bin
# dev
marksman
lua-language-server
clang-tools
texlab
# go
go
gopls
# nix
nil
nixfmt
nixos-generators
# node/yarn/deno
nodejs
yarn
deno
# rust
gcc
rustc
rustfmt
cargo
rust-analyzer
bacon
]; ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
@ -72,6 +100,38 @@
sharedModules = [{ sharedModules = [{
home.stateVersion = "22.11"; home.stateVersion = "22.11";
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;
};
};
};
}]; }];
}; };
@ -102,4 +162,7 @@
home.username = "user"; home.username = "user";
home.homeDirectory = "/home/user"; home.homeDirectory = "/home/user";
}; };
# dev
programs.npm.enable = true;
} }

View File

@ -1,68 +0,0 @@
{ pkgs, ... }:
{
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
lua-language-server
clang-tools
texlab
# go
go
gopls
# nix
nil
nixfmt
nixos-generators
# node/yarn/deno
nodejs
yarn
deno
# rust
gcc
rustc
rustfmt
cargo
rust-analyzer
bacon
];
}