Add helix and cli tools

This commit is contained in:
muon 2024-06-06 22:59:34 +00:00
parent 31ffdc94e8
commit 9cdce8f2fa
3 changed files with 48 additions and 1 deletions

View file

@ -2,7 +2,8 @@
imports = [ imports = [
./shell.nix ./shell.nix
./emulator.nix ./emulator.nix
# ./tools.nix ./development.nix
./tools.nix
]; ];
config = lib.mkIf osConfig.mods.desktop.enable { config = lib.mkIf osConfig.mods.desktop.enable {

View file

@ -0,0 +1,26 @@
{ pkgs, lib, config, ... }: {
options.mods.terminal.development.enable =
lib.mkEnableOption "enables cli editor";
config = lib.mkIf config.mods.terminal.development.enable {
# home.packages = with pkgs; [];
programs.helix = {
enable = true;
settings.editor = {
line-number = "relative";
scrolloff = 5;
completion-replace = true;
bufferline = "always";
rulers = [80];
soft-wrap.enable = true;
indent-guides.render = true;
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
};
};
};
}

View file

@ -0,0 +1,20 @@
{ pkgs, lib, config, ... }: {
options.mods.terminal.tools.enable = lib.mkEnableOption "enables cli tools";
config = lib.mkIf config.mods.terminal.tools.enable {
home.packages = with pkgs; [
# libraries
glow
# file managing
fd
ripgrep
trash-cli
# programs
bottom
zellij
fend
];
};
}