global reformat with treefmt

This commit is contained in:
nyanloutre 2025-04-23 11:15:31 +02:00
parent 97f849e454
commit 393e92fe14
17 changed files with 979 additions and 726 deletions

View file

@ -11,18 +11,22 @@
vimAlias = true;
configure = {
customRC = ''
set tabstop=8
set tabstop=8
set shiftwidth=4
set softtabstop=0
set expandtab
set smarttab
set smarttab
set background=dark
set mouse=
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
vim-startify airline sensible
polyglot ale fugitive
vim-startify
airline
sensible
polyglot
ale
fugitive
];
opt = [ ];
};
@ -73,6 +77,8 @@
# Développement
openssl
treefmt
nixfmt-rfc-style
];
users.defaultUserShell = pkgs.zsh;
@ -93,8 +99,14 @@
'';
ohMyZsh = {
enable = true;
plugins = [ "git" "colored-man-pages" "command-not-found" "extract" "nix" ];
customPkgs = with pkgs;[
plugins = [
"git"
"colored-man-pages"
"command-not-found"
"extract"
"nix"
];
customPkgs = with pkgs; [
nix-zsh-completions
];
};
@ -107,16 +119,17 @@
git.enable = true;
};
environment.variables = let
starshipConfToml =
pkgs.writeText "starship.toml" ''
environment.variables =
let
starshipConfToml = pkgs.writeText "starship.toml" ''
[[battery.display]]
threshold = 50
'';
in {
EDITOR = "nvim";
STARSHIP_CONFIG = "${starshipConfToml}";
};
in
{
EDITOR = "nvim";
STARSHIP_CONFIG = "${starshipConfToml}";
};
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d";