helix config
This commit is contained in:
parent
7ddae46dd0
commit
b7bfcbeb7d
4 changed files with 80 additions and 7 deletions
|
|
@ -1,10 +1,6 @@
|
||||||
{ lib, pkgs, modulesPath, ... }: {
|
{ lib, pkgs, modulesPath, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xorg.xkill
|
# xorg.xkill
|
||||||
macchina
|
|
||||||
rustdesk
|
|
||||||
screen
|
|
||||||
libthai
|
|
||||||
bat
|
bat
|
||||||
bottom
|
bottom
|
||||||
cifs-utils
|
cifs-utils
|
||||||
|
|
@ -14,11 +10,15 @@
|
||||||
firefox
|
firefox
|
||||||
git
|
git
|
||||||
helix
|
helix
|
||||||
|
libthai
|
||||||
localsend
|
localsend
|
||||||
|
macchina
|
||||||
mesa
|
mesa
|
||||||
mpv
|
mpv
|
||||||
ouch
|
ouch
|
||||||
ripgrep
|
ripgrep
|
||||||
|
rustdesk
|
||||||
|
screen
|
||||||
skim
|
skim
|
||||||
tree
|
tree
|
||||||
wezterm
|
wezterm
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,9 @@
|
||||||
# }
|
# }
|
||||||
# home.username = "tao";
|
# home.username = "tao";
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
# home-manager.useUserPackages = false;
|
||||||
|
home-manager.verbose = true;
|
||||||
|
home-manager.backupFileExtension = ".hm-bak";
|
||||||
home-manager.users.tao = import ./tao/home.nix;
|
home-manager.users.tao = import ./tao/home.nix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
51
users/tao/helix.nix
Normal file
51
users/tao/helix.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
programs.helix = {
|
||||||
|
settings = {
|
||||||
|
theme = "dracula";
|
||||||
|
editor = {
|
||||||
|
line-number = "relative";
|
||||||
|
cursorline = true;
|
||||||
|
completion-replace = true;
|
||||||
|
preview-completion-insert = false;
|
||||||
|
indent-guides = {
|
||||||
|
render = true;
|
||||||
|
skip-levels = 2;
|
||||||
|
};
|
||||||
|
cursor-shape = {
|
||||||
|
insert = "bar";
|
||||||
|
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" ];
|
||||||
|
};
|
||||||
|
lsp = {
|
||||||
|
display-messages = true;
|
||||||
|
display-inlay-hints = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
languages = {
|
||||||
|
language = [
|
||||||
|
{
|
||||||
|
name = "c";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = {
|
||||||
|
command = "clang-format";
|
||||||
|
args = [ "--style=file:/home/tao/Templates/clang-format" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "nix";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = {
|
||||||
|
command = "nixpkgs-fmt";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,24 @@
|
||||||
{
|
{
|
||||||
|
programs.helix = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
settings = {
|
||||||
|
theme = "dracula";
|
||||||
|
editor = {
|
||||||
|
line-number = "relative";
|
||||||
|
cursorline = true;
|
||||||
|
completion-replace = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
languages = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Tao Tien";
|
||||||
|
userEmail = "29749622+taotien@users.noreply.github.com";
|
||||||
|
};
|
||||||
|
|
||||||
home.username = "tao";
|
home.username = "tao";
|
||||||
home.homeDirectory = "/home/tao";
|
home.homeDirectory = "/home/tao";
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue