alejandra?

This commit is contained in:
Tao Tien 2024-02-24 02:30:17 -08:00
parent 63baacc410
commit 21d7561a56
17 changed files with 296 additions and 204 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
home.file.".cargo/config.toml".text = ''
[alias]
rr = "run --release"
@ -31,7 +31,7 @@
# # linker = "musl-gcc"
# linker = "clang"
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
[target.x86-unknown-linux-gnu]
# linker = "musl-gcc"
linker = "clang"

View file

@ -1,4 +1,8 @@
{ inputs, pkgs, ... }: {
{
inputs,
pkgs,
...
}: {
programs.helix = {
settings = {
theme = "dracula";
@ -16,9 +20,9 @@
select = "underline";
};
statusline = {
left = [ "mode" "spinner" "spacer" "version-control" ];
center = [ "file-name" "file-modification-indicator" ];
right = [ "diagnostics" "primary-selection-length" "total-line-numbers" "selections" "position" ];
left = ["mode" "spinner" "spacer" "version-control"];
center = ["file-name" "file-modification-indicator"];
right = ["diagnostics" "primary-selection-length" "total-line-numbers" "selections" "position"];
};
lsp = {
display-messages = true;
@ -42,15 +46,42 @@
auto-format = true;
formatter = {
command = "clang-format";
args = [ "--style=file:/home/tao/Templates/clang-format" ];
args = ["--style=file:/home/tao/Templates/clang-format"];
};
indent = {
tab-width = 8;
unit = "\t";
};
indent = { tab-width = 8; unit = "\t"; };
}
# { name = "css"; comment = "/*"; }
{ name = "html"; auto-format = false; indent = { tab-width = 4; unit = "\t"; }; }
{ name = "java"; auto-format = true; indent = { tab-width = 4; unit = "\t"; }; }
{ name = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; }
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
{
name = "html";
auto-format = false;
indent = {
tab-width = 4;
unit = "\t";
};
}
{
name = "java";
auto-format = true;
indent = {
tab-width = 4;
unit = "\t";
};
}
{
name = "nix";
auto-format = true;
formatter = {command = "alejandra";};
}
{
name = "typst";
indent = {
tab-width = 4;
unit = " ";
};
}
# { name = "rust"; }
];
language-servers = {

View file

@ -1,6 +1,10 @@
{ pkgs, inputs, ... }: {
{
pkgs,
inputs,
...
}: {
imports = [
(import ./helix.nix { inherit pkgs inputs; })
(import ./helix.nix {inherit pkgs inputs;})
# ./hyprland.nix
./cargo.nix
];
@ -13,10 +17,9 @@
name = "Tao Tien";
email = "29749622+taotien@users.noreply.github.com";
};
ui =
{
default-command = "log";
};
ui = {
default-command = "log";
};
};
package = inputs.jujutsu.packages.${pkgs.system}.default;
};
@ -46,7 +49,7 @@
zellij = {
enable = true;
settings = { };
settings = {};
};
zoxide = {