First Commit

This commit is contained in:
2026-01-05 04:04:36 +01:00
commit c7a17f7772
83 changed files with 3574 additions and 0 deletions

10
home/terminal/btop.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
programs.btop = {
enable = true;
package = pkgs.btop.override {
cudaSupport = true;
rocmSupport = true;
};
};
}

20
home/terminal/default.nix Normal file
View File

@@ -0,0 +1,20 @@
{ lib, ... }:
let
b = builtins;
module_files =
b.readDir ./. |>
lib.filterAttrs (name: type:
( (lib.strings.hasSuffix ".nix" name
&& name != "default.nix"
&& type == "regular" )
|| ( type == "directory"
&& b.pathExists ./${name}/default.nix))
) |>
b.attrNames |>
b.map (f: ./${f});
in
{
imports = module_files;
nixpkgs.config.allowUnfree = true;
}

30
home/terminal/eza.nix Normal file
View File

@@ -0,0 +1,30 @@
# Eza is a ls replacement
{
programs.eza = {
enable = true;
icons = "auto";
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
git = true;
extraOptions = [
"--group-directories-first"
"--no-quotes"
"--header" # Show header row
"--git-ignore"
"--icons=always"
# "--time-style=long-iso" # ISO 8601 extended format for time
"--classify" # append indicator (/, *, =, @, |)
"--hyperlink" # make paths clickable in some terminals
];
};
# Aliases to make `ls`, `ll`, `la` use eza
home.shellAliases = {
ls = "eza";
lt = "eza --tree --level=2";
ll = "eza -lh --no-user --long";
la = "eza -lah ";
tree = "eza --tree ";
};
}

25
home/terminal/fish.nix Normal file
View File

@@ -0,0 +1,25 @@
{
pkgs,
host,
...
}: {
programs.fish = {
enable = true;
shellAliases = {
fr = "sudo nixos-rebuild switch --flake ~/LillyOS/#${host}";
};
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
plugins = [
# Enable a plugin (here grc for colorized command output) from nixpkgs
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
{ name = "tide"; src = pkgs.fishPlugins.tide.src; }
{ name = "done"; src = pkgs.fishPlugins.done.src; }
{ name = "fish-you-should-use"; src = pkgs.fishPlugins.fish-you-should-use.src; }
{ name = "autopair"; src = pkgs.fishPlugins.autopair.src; }
{ name = "fzf-fish"; src = pkgs.fishPlugins.fzf-fish.src; }
{ name = "git-abbr"; src = pkgs.fishPlugins.git-abbr.src; }
];
};
}

22
home/terminal/git.nix Normal file
View File

@@ -0,0 +1,22 @@
{ email, prettyUsername, ... }:
{
programs.git = {
enable = true;
settings = {
user = {
name = "${prettyUsername}";
email = "${email}";
};
# FOSS-friendly settings
push.default = "simple"; # Match modern push behavior
credential.helper = "cache --timeout=7200";
init.defaultBranch = "main"; # Set default new branches to 'main'
log.decorate = "full"; # Show branch/tag info in git log
log.date = "iso"; # ISO 8601 date format
# Conflict resolution style for readable diffs
merge.conflictStyle = "diff3";
};
};
}

97
home/terminal/kitty.nix Normal file
View File

@@ -0,0 +1,97 @@
{
pkgs,
...
}: {
programs.kitty = {
enable = true;
# Upstream test failures resolved; use default kitty package (>= 0.44).
package = pkgs.kitty;
settings = {
font_family = "Maple Mono NF";
font_size = 11;
wheel_scroll_min_lines = 1;
window_padding_width = 4;
confirm_os_window_close = 0;
scrollback_lines = 10000;
enable_audio_bell = false;
mouse_hide_wait = 60;
cursor_trail = 1;
cursor_shape = "beam";
tab_fade = 1;
active_tab_font_style = "bold";
inactive_tab_font_style = "bold";
tab_bar_edge = "top";
tab_bar_margin_width = 0;
tab_bar_style = "powerline";
#tab_bar_style = "fade";
enabled_layouts = "splits";
open_url_with_default = true;
detect_urls = true;
allow_remote_control = true;
shell = "fish";
};
shellIntegration.enableZshIntegration = true;
shellIntegration.enableFishIntegration = true;
shellIntegration.enableBashIntegration = true;
shellIntegration.mode = "enabled";
extraConfig = ''
#open_url_with default
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty sftp ssh
#detect_urls yes
# Clipboard
#map ctrl+shift+v paste_from_selection
#map shift+insert paste_from_selection
# Scrolling
map ctrl+shift+up scroll_line_up
map ctrl+shift+down scroll_line_down
map ctrl+shift+k scroll_line_up
map ctrl+shift+j scroll_line_down
map ctrl+shift+page_up scroll_page_up
map ctrl+shift+page_down scroll_page_down
map ctrl+shift+home scroll_home
map ctrl+shift+end scroll_end
map ctrl+shift+h show_scrollback
# Window management
map alt+n new_window_with_cwd
#map alt+n new_os_window
map alt+w close_window
map ctrl+shift+enter launch --location=hsplit
map ctrl+shift+s launch --location=vsplit
map ctrl+shift+] next_window
map ctrl+shift+[ previous_window
map ctrl+shift+f move_window_forward
map ctrl+shift+b move_window_backward
map ctrl+shift+` move_window_to_top
map ctrl+shift+1 first_window
map ctrl+shift+2 second_window
map ctrl+shift+3 third_window
map ctrl+shift+4 fourth_window
map ctrl+shift+5 fifth_window
map ctrl+shift+6 sixth_window
map ctrl+shift+7 seventh_window
map ctrl+shift+8 eighth_window
map ctrl+shift+9 ninth_window # Tab management
map ctrl+shift+0 tenth_window
map ctrl+shift+right next_tab
map ctrl+shift+left previous_tab
map ctrl+shift+t new_tab
map ctrl+shift+q close_tab
map ctrl+shift+l next_layout
map ctrl+shift+. move_tab_forward
map ctrl+shift+, move_tab_backward
# Miscellaneous
map ctrl+shift+up increase_font_size
map ctrl+shift+down decrease_font_size
map ctrl+shift+backspace restore_font_size
'';
};
}

12
home/terminal/zoxide.nix Normal file
View File

@@ -0,0 +1,12 @@
_: {
programs = {
zoxide = {
enable = true;
enableZshIntegration = true;
enableBashIntegration = true;
options = [
"--cmd cd"
];
};
};
}