mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add helix and cli tools
This commit is contained in:
parent
31ffdc94e8
commit
9cdce8f2fa
3 changed files with 48 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
|||
imports = [
|
||||
./shell.nix
|
||||
./emulator.nix
|
||||
# ./tools.nix
|
||||
./development.nix
|
||||
./tools.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf osConfig.mods.desktop.enable {
|
||||
|
|
|
|||
26
modules/home/terminal/development.nix
Normal file
26
modules/home/terminal/development.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
20
modules/home/terminal/tools.nix
Normal file
20
modules/home/terminal/tools.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue