145 lines
4.1 KiB
Nix
145 lines
4.1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
username,
|
|
host,
|
|
...
|
|
}: let
|
|
inherit (import ../variables.nix) gitUsername gitEmail;
|
|
in {
|
|
programs = {
|
|
home-manager.enable = true;
|
|
|
|
git = {
|
|
enable = true;
|
|
userName = "${gitUsername}";
|
|
userEmail = "${gitEmail}";
|
|
extraConfig = {
|
|
credential.helper = "cache --timeout=3600";
|
|
};
|
|
};
|
|
|
|
gh.enable = true;
|
|
|
|
btop = {
|
|
enable = false;
|
|
};
|
|
|
|
kitty = {
|
|
enable = true;
|
|
package = pkgs.kitty;
|
|
settings = {
|
|
scrollback_lines = 2000;
|
|
wheel_scroll_min_lines = 1;
|
|
window_padding_width = 4;
|
|
confirm_os_window_close = 0;
|
|
};
|
|
extraConfig = ''
|
|
tab_bar_style fade
|
|
tab_fade 1
|
|
active_tab_font_style bold
|
|
inactive_tab_font_style bold
|
|
'';
|
|
};
|
|
|
|
starship = {
|
|
enable = true;
|
|
package = pkgs.starship;
|
|
};
|
|
|
|
bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
profileExtra = ''
|
|
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
|
# exec Hyprland
|
|
#fi
|
|
'';
|
|
initExtra = ''
|
|
fastfetch
|
|
if [ -f $HOME/.bashrc-personal ]; then
|
|
source $HOME/.bashrc-personal
|
|
fi
|
|
fc
|
|
'';
|
|
shellAliases = {
|
|
os-sw = "sudo nixos-rebuild switch --flake ~/zaneyos";
|
|
os-bt = "sudo nixos-rebuild boot --flake ~/zaneyos";
|
|
os-ts = "sudo nixos-rebuild test --flake ~/zaneyos";
|
|
os-up = "sudo nix flake update";
|
|
os-upg = "sudo nix flake update && sudo nixos-rebuild switch --flake ~/zaneyos";
|
|
os-up-np = "sudo nix flake update --update-input nixpkgs";
|
|
os-up-hm = "sudo nix flake update --update-input home-manager";
|
|
os-up-sx = "sudo nix flake update --update-input stylix";
|
|
os-up-af = "sudo nix flake update --update-input auto-cpufreq";
|
|
os-up-fa = "sudo nix flake update --update-input firefox-addons";
|
|
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
|
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
|
hypr-cli = "hyprctl clients";
|
|
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
|
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
|
n = "nano";
|
|
f = "fuck";
|
|
cat = "bat";
|
|
st = "speedtest";
|
|
ls = "eza --icons";
|
|
ll = "eza -lh --icons --grid --group-directories-first";
|
|
la = "eza -lah --icons --grid --group-directories-first";
|
|
ssh-server = "ssh garand_plg@192.168.1.156 -p 556 -i ~/.ssh/hp-t640-homeserver";
|
|
fc = "fortune | cowsay";
|
|
terminal = "cat /home/garand_plg/Documents/terminal.txt";
|
|
e-terminal = "nano /home/garand_plg/Documents/terminal.txt";
|
|
mkgidf = "git diff > git-diff.txt";
|
|
".." = "cd ..";
|
|
kys = "shutdown now";
|
|
};
|
|
};
|
|
|
|
hyprlock = {
|
|
enable = true;
|
|
settings = {
|
|
general = {
|
|
disable_loading_bar = true;
|
|
grace = 10;
|
|
hide_cursor = true;
|
|
no_fade_in = false;
|
|
};
|
|
background = lib.mkForce [
|
|
{
|
|
path = "/home/${username}/Pictures/Wallpapers/attack-on-titan-mikasa-ackerman.jpg";
|
|
blur_passes = 3;
|
|
blur_size = 8;
|
|
}
|
|
];
|
|
image = [
|
|
{
|
|
path = "/home/${username}/.config/face.jpg";
|
|
size = 150;
|
|
border_size = 4;
|
|
border_color = "rgb(0C96F9)";
|
|
rounding = -1; # Negative means circle
|
|
position = "0, 200";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
];
|
|
input-field = lib.mkDefault [
|
|
{
|
|
size = "200, 50";
|
|
position = "0, -80";
|
|
monitor = "";
|
|
dots_center = true;
|
|
fade_on_empty = false;
|
|
font_color = "rgb(CFE6F4)";
|
|
inner_color = "rgb(657DC2)";
|
|
outer_color = "rgb(0D0E15)";
|
|
outline_thickness = 5;
|
|
placeholder_text = "Password...";
|
|
shadow_passes = 2;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|