[Init]
This commit is contained in:
		
							
								
								
									
										21
									
								
								home/cli/default.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								home/cli/default.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
{
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./git
 | 
			
		||||
    ./neofetch
 | 
			
		||||
    ./starship
 | 
			
		||||
    ./zsh
 | 
			
		||||
    ./helix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    sudo
 | 
			
		||||
    ripgrep
 | 
			
		||||
 | 
			
		||||
    bat
 | 
			
		||||
    croc
 | 
			
		||||
    socat
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										20
									
								
								home/cli/git/default.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								home/cli/git/default.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
{
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  
 | 
			
		||||
  programs.git = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    userEmail = "soraefir+git@pm.me";
 | 
			
		||||
    userName = "soraefir";
 | 
			
		||||
  signing = {
 | 
			
		||||
    key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
 | 
			
		||||
    signByDefault = true;
 | 
			
		||||
   };
 | 
			
		||||
  ignores = ["*result*" ".direnv" "node_modules"];
 | 
			
		||||
 };
 | 
			
		||||
 | 
			
		||||
 home.packages = with pkgs; [
 | 
			
		||||
    tig
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								home/cli/helix/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								home/cli/helix/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
    ...
 | 
			
		||||
}:{
 | 
			
		||||
    programs.helix = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        languages = { };
 | 
			
		||||
        settings = { };
 | 
			
		||||
        themes = { };
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										127
									
								
								home/cli/neofetch/config.conf
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										127
									
								
								home/cli/neofetch/config.conf
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,127 @@
 | 
			
		||||
 | 
			
		||||
print_info() {
 | 
			
		||||
    info ""
 | 
			
		||||
    info "${c5} ├─  Distro     " distro
 | 
			
		||||
    info "${c5} ├─  Kernel     " kernel
 | 
			
		||||
    info "${c5} ├─  Pkgs       " packages
 | 
			
		||||
    info "${c5} ├─  Compositor " de
 | 
			
		||||
    info "${c5} ├─  CPU        " cpu
 | 
			
		||||
    info "${c5} ├─  GPU        " gpu
 | 
			
		||||
    info "${c5} ├─  Term       " term
 | 
			
		||||
    prin "$(color 0) $(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7)"
 | 
			
		||||
    prin "$(color 8) $(color 9) $(color 10) $(color 11) $(color 12) $(color 13) $(color 14) $(color 15)"
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
##--------- Title
 | 
			
		||||
title_fqdn="off"
 | 
			
		||||
 | 
			
		||||
##--------- Kernel
 | 
			
		||||
kernel_shorthand="off"
 | 
			
		||||
 | 
			
		||||
##--------- Distro
 | 
			
		||||
distro_shorthand="on"
 | 
			
		||||
os_arch="off"
 | 
			
		||||
 | 
			
		||||
##--------- Uptime
 | 
			
		||||
uptime_shorthand="off"
 | 
			
		||||
 | 
			
		||||
##--------- Memory
 | 
			
		||||
memory_percent="off"
 | 
			
		||||
memory_unit="mib"
 | 
			
		||||
 | 
			
		||||
##--------- Packages
 | 
			
		||||
package_managers="on"
 | 
			
		||||
 | 
			
		||||
##--------- Shell
 | 
			
		||||
shell_path="off"
 | 
			
		||||
shell_version="on"
 | 
			
		||||
 | 
			
		||||
##--------- CPU
 | 
			
		||||
speed_type="bios_limit"
 | 
			
		||||
speed_shorthand="off"
 | 
			
		||||
cpu_brand="on"
 | 
			
		||||
cpu_speed="off"
 | 
			
		||||
cpu_cores="off"
 | 
			
		||||
cpu_temp="off"
 | 
			
		||||
 | 
			
		||||
##--------- GPU
 | 
			
		||||
gpu_brand="on"
 | 
			
		||||
gpu_type="dedicated"
 | 
			
		||||
 | 
			
		||||
##--------- Resolution
 | 
			
		||||
refresh_rate="off"
 | 
			
		||||
 | 
			
		||||
##--------- GTK
 | 
			
		||||
gtk_shorthand="off"
 | 
			
		||||
gtk2="on"
 | 
			
		||||
gtk3="on"
 | 
			
		||||
 | 
			
		||||
##--------- IP
 | 
			
		||||
public_ip_host="http://ident.me"
 | 
			
		||||
public_ip_timeout=2
 | 
			
		||||
 | 
			
		||||
##--------- DE
 | 
			
		||||
de_version="on"
 | 
			
		||||
 | 
			
		||||
##--------- Disk
 | 
			
		||||
disk_show=('/')
 | 
			
		||||
disk_subtitle="mount"
 | 
			
		||||
disk_percent="on"
 | 
			
		||||
 | 
			
		||||
##--------- Song
 | 
			
		||||
music_player="auto"
 | 
			
		||||
song_format="%artist% - %album% - %title%"
 | 
			
		||||
song_shorthand="off"
 | 
			
		||||
mpc_args=()
 | 
			
		||||
 | 
			
		||||
##--------- Text Colors
 | 
			
		||||
colors=(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)
 | 
			
		||||
 | 
			
		||||
##--------- Text Options
 | 
			
		||||
bold="on"
 | 
			
		||||
underline_enabled="on"
 | 
			
		||||
underline_char=""
 | 
			
		||||
separator=":"
 | 
			
		||||
 | 
			
		||||
##--------- Color Blocks
 | 
			
		||||
block_range=(0 15)
 | 
			
		||||
color_blocks="on"
 | 
			
		||||
block_width=3
 | 
			
		||||
block_height=1
 | 
			
		||||
col_offset="auto"
 | 
			
		||||
 | 
			
		||||
##--------- Progress Bars
 | 
			
		||||
bar_char_elapsed="-"
 | 
			
		||||
bar_char_total="="
 | 
			
		||||
bar_border="on"
 | 
			
		||||
bar_length=15
 | 
			
		||||
bar_color_elapsed="distro"
 | 
			
		||||
bar_color_total="distro"
 | 
			
		||||
 | 
			
		||||
cpu_display="off"
 | 
			
		||||
memory_display="off"
 | 
			
		||||
battery_display="off"
 | 
			
		||||
disk_display="off"
 | 
			
		||||
 | 
			
		||||
##--------- Backend Settings
 | 
			
		||||
image_backend="kitty"
 | 
			
		||||
image_source="auto"
 | 
			
		||||
 | 
			
		||||
##--------- Ascii Options
 | 
			
		||||
ascii_distro="nixos_small"
 | 
			
		||||
ascii_bold="on"
 | 
			
		||||
 | 
			
		||||
##--------- Image Options
 | 
			
		||||
image_loop="off"
 | 
			
		||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
 | 
			
		||||
crop_mode="normal"
 | 
			
		||||
crop_offset="center"
 | 
			
		||||
image_size="auto"
 | 
			
		||||
gap=2
 | 
			
		||||
yoffset=0
 | 
			
		||||
xoffset=0
 | 
			
		||||
background_color=
 | 
			
		||||
 | 
			
		||||
##--------- Misc Options
 | 
			
		||||
stdout="off"
 | 
			
		||||
							
								
								
									
										10
									
								
								home/cli/neofetch/default.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								home/cli/neofetch/default.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
  pkgs,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    neofetch
 | 
			
		||||
  ];
 | 
			
		||||
  xdg.configFile."neofetch/config.conf".source =./config.conf;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										63
									
								
								home/cli/starship/default.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										63
									
								
								home/cli/starship/default.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  
 | 
			
		||||
  home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
 | 
			
		||||
 | 
			
		||||
  programs.starship = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableFishIntegration = false;
 | 
			
		||||
    enableIonIntegration = false;
 | 
			
		||||
    enableNushellIntegration = false;
 | 
			
		||||
    enableZshIntegration = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
    format = lib.concatStrings [
 | 
			
		||||
    "[░▒▓](#${config.colorScheme.colors.base06})"
 | 
			
		||||
    "$username"
 | 
			
		||||
    "$hostname"
 | 
			
		||||
    "[](bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base06})"
 | 
			
		||||
    "$directory"
 | 
			
		||||
    "[](bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base05})"
 | 
			
		||||
    "$git_branch"
 | 
			
		||||
    "$git_status"
 | 
			
		||||
    "[](fg:#${config.colorScheme.colors.base04})"
 | 
			
		||||
  ];
 | 
			
		||||
  username = {
 | 
			
		||||
    show_always = true;
 | 
			
		||||
    style_user = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    style_root = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    format = "[ $user]($style)";
 | 
			
		||||
  };
 | 
			
		||||
  hostname = {
 | 
			
		||||
    ssh_symbol = "";
 | 
			
		||||
    style = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    format = "[@$hostname]($style)";
 | 
			
		||||
    ssh_only = false;
 | 
			
		||||
    disabled = false;
 | 
			
		||||
  };
 | 
			
		||||
  directory = {
 | 
			
		||||
    style = "bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    format = "[ $path ]($style)";
 | 
			
		||||
    truncation_length = 3;
 | 
			
		||||
    truncation_symbol = "…/";
 | 
			
		||||
  };
 | 
			
		||||
  directory.substitutions = {
 | 
			
		||||
    "Documents" = " ";
 | 
			
		||||
    "Downloads" = " ";
 | 
			
		||||
    "Music" = " ";
 | 
			
		||||
    "Pictures" = " ";
 | 
			
		||||
  };
 | 
			
		||||
  git_branch = {
 | 
			
		||||
    symbol = "";
 | 
			
		||||
    style = "bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    format = "[ $symbol $branch ]($style)";
 | 
			
		||||
  };
 | 
			
		||||
  git_status = {
 | 
			
		||||
    style = "bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base00}";
 | 
			
		||||
    format = "[$all_status$ahead_behind ]($style)";
 | 
			
		||||
  };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								home/cli/zsh/default.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								home/cli/zsh/default.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  programs.zsh.enable = true;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user