This commit is contained in:
2023-04-12 20:32:07 +02:00
committed by soraefir
parent 10fbbc2654
commit a7ef5cf996
96 changed files with 5857 additions and 4 deletions

21
home/cli/default.nix Executable file
View File

@@ -0,0 +1,21 @@
{
pkgs,
...
}: {
imports = [
./git
./neofetch
./starship
./zsh
./helix
];
home.packages = with pkgs; [
sudo
ripgrep
bat
croc
socat
];
}

23
home/cli/git/default.nix Executable file
View File

@@ -0,0 +1,23 @@
{
pkgs,
...
}: {
programs.git = {
enable = true;
userEmail = "soraefir+git@pm.me";
userName = "soraefir";
signing = {
key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
signByDefault = true;
};
ignores = ["*result*" ".direnv" "node_modules"];
extraConfig = {
core.hooksPath = "./.dev/hooks";
};
};
home.packages = with pkgs; [
tig
];
}

View File

@@ -0,0 +1,10 @@
{
...
}:{
programs.helix = {
enable = true;
languages = { };
settings = { };
themes = { };
};
}

127
home/cli/neofetch/config.conf Executable file
View 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
View File

@@ -0,0 +1,10 @@
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
neofetch
];
xdg.configFile."neofetch/config.conf".source =./config.conf;
}

61
home/cli/starship/default.nix Executable file
View File

@@ -0,0 +1,61 @@
{
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})"
"[ ](bg:#${config.colorScheme.colors.base04})"
"$env_var"
"[](bg:#${config.colorScheme.colors.base00} 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" = " ";
};
env_var = {
variable = "DEVSH";
default = "";
style = "bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base00}";
format = "[$env_value]($style)";
};
};
};
}

22
home/cli/zsh/default.nix Executable file
View File

@@ -0,0 +1,22 @@
{
pkgs,
...
}:
let
nixflake_dir = "$HOME/files/nixconfig";
in {
programs.zsh = {
enable = true;
shellAliases = {
"sudo" = "sudo ";
"devsh-dl" = "nix develop --profile /tmp/devsh-env ${nixflake_dir} -c zsh";
"devsh" = "nix develop --profile /tmp/devsh-env ${nixflake_dir} -c zsh";
"nixu" = "(cd ${nixflake_dir} && nix flake update)";
"nixb" = "(cd ${nixflake_dir} && sudo nixos-rebuild switch --flake ./)";
"nixf" = "sudo echo 'Full Update' && echo 'Update lock' && nixu && echo 'Building new' && nixb && (devsh && exit) ";
"nixgcf" = "sudo nix-collect-garbage -d && nix-collect-garbage -d";
"ssh" = "TERM=xterm-256color ${pkgs.openssh}/bin/ssh";
"top" = "btop";
};
};
}