This commit is contained in:
hand7s 2025-04-21 18:32:39 +03:00
commit b6cdc78668
210 changed files with 9929 additions and 0 deletions

12
hand7s/programs/bat.nix Normal file
View file

@ -0,0 +1,12 @@
{
...
}: {
programs = {
bat = {
enable = true;
config = {
pager = "less -FR";
};
};
};
}

View file

@ -0,0 +1,22 @@
{
pkgs,
...
}: {
programs = {
chromium = {
package = (
pkgs.google-chrome.override {
commandLineArgs = [
"--enable-features=AcceleratedVideoEncoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE"
"--enable-features=VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport"
"--enable-features=UseMultiPlaneFormatForHardwareVideo"
"--enable-features=SkiaGraphite"
"--enable-unsafe-webgpu"
"--ignore-gpu-blocklist"
"--enable-zero-copy"
];
}
);
};
};
}

12
hand7s/programs/eza.nix Normal file
View file

@ -0,0 +1,12 @@
{
...
}: {
programs = {
eza = {
enable = true;
enableFishIntegration = true;
git = true;
icons = "always";
};
};
}

View file

@ -0,0 +1,13 @@
{
inputs,
pkgs,
...
}: let
zen-browser = inputs.zen-browser.packages.${pkgs.system}.default;
in {
programs = {
firefox = {
package = zen-browser;
};
};
}

15
hand7s/programs/fish.nix Normal file
View file

@ -0,0 +1,15 @@
{
...
}: {
programs = {
fish = {
enable = true;
generateCompletions = true;
functions = {
fish_greeting = {
body = "echo ' ~ 𝑠𝑛𝑜𝑤𝑦 𝑝𝑙𝑎𝑐𝑒, 𝑓𝑢𝑙𝑙 𝑜𝑓 𝑓𝑙𝑎𝑘𝑒𝑠! '";
};
};
};
};
}

View file

@ -0,0 +1,21 @@
{
pkgs,
...
}: {
programs = {
fuzzel = {
settings = {
main = {
terminal = "${pkgs.ghostty}/bin/ghostty";
layer = "overlay";
prompt = " > ";
};
border = {
width = "2";
radius = "10";
};
};
};
};
}

13
hand7s/programs/fzf.nix Normal file
View file

@ -0,0 +1,13 @@
{
...
}: {
programs = {
fzf = {
enable = true;
enableFishIntegration = true;
tmux = {
enableShellIntegration = true;
};
};
};
}

View file

@ -0,0 +1,24 @@
{
pkgs,
...
}: {
programs = {
ghostty = {
enableFishIntegration = true;
installBatSyntax = true;
settings = {
title = "spooky scary tty";
command = "${pkgs.fish}/bin/fish --login --interactive";
confirm-close-surface = false;
keybind = [
"ctrl+shift+d=new_split:right"
"ctrl+shift+h=goto_split:left"
"ctrl+shift+l=goto_split:right"
];
};
};
};
}

11
hand7s/programs/git.nix Normal file
View file

@ -0,0 +1,11 @@
{
...
}: {
programs = {
git = {
enable = true;
userEmail = "117505144+s0me1newithhand7s@users.noreply.github.com";
userName = "s0me1newithhand7s";
};
};
}

63
hand7s/programs/helix.nix Normal file
View file

@ -0,0 +1,63 @@
{
pkgs,
...
}: {
programs = {
helix = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
nixd
nixfmt-rfc-style
];
settings = {
editor = {
line-number = "relative";
cursorline = true;
lsp = {
display-messages = true;
};
};
};
languages = {
language-servers = {
nixd = {
command = "${pkgs.nixd}/bin/nixd";
args = [
"--inlay-hints=true"
];
};
};
language = [
{
name = "nix";
comment-token = "#";
injection-regex = "nix";
indent = {
tab-width = 4;
unit = " ";
};
formatter = {
command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt-rfc-style";
args = [
"--indent=4"
];
};
file-types = [
"nix"
];
language-servers = [
"nixd"
];
}
];
};
};
};
}

View file

@ -0,0 +1,94 @@
{
config,
lib,
...
}: {
programs = {
hyprlock = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
settings = {
general = {
hide_cursor = true;
ignore_empty_input = true;
};
label = [
{
monitor = "";
text = "$TIME";
text_align = "center";
color = config.lib.stylix.colors.base01;
font_size = 48;
font_family = "Nerd Hack Font";
rotate = 0;
position = "0, 50";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 2;
shadow_color = "rgba(38, 3, 4, 1)";
shadow_boost = 2;
}
{
monitor = "";
text = "> $LAYOUT[en,ru]";
text_align = "center";
color = config.lib.stylix.colors.base06;
font_size = 26;
font_family = "Nerd Hack Font";
rotate = 0;
position = "200, -50";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 2;
shadow_color = "rgba(38, 3, 4, 1)";
shadow_boost = 2;
}
];
input-field = lib.mkForce [
{
monitor = "";
size = "250, 50";
outline_thickness = 2;
dots_size = 0.35;
dots_spacing = 0.5;
dots_center = true;
dots_rounding = -2;
fade_on_empty = false;
fade_timeout = 0;
placeholder_text = " ";
hide_input = false;
rounding = -0.3;
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
fail_transition = 1000;
capslock_color = -1;
numlock_color = -1;
bothlock_color = -1;
invert_numlock = false;
swap_font_color = false;
position = "0, -50";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 5;
shadow_boost = 1;
}
];
};
};
};
}

View file

@ -0,0 +1,470 @@
{
config,
pkgs,
lib,
...
}: {
programs = {
hyprpanel = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
hyprland = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
};
overwrite = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
};
overlay = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
};
settings = {
layout = {
"bar.layouts" = {
"*" = {
left = [
"dashboard"
"workspaces"
"media"
];
middle = [
"clock"
"power"
];
right = [
"network"
"kbinput"
"volume"
"systray"
"notifications"
];
};
};
};
scalingPriority = "hyprland";
tear = false;
terminal = "${pkgs.ghostty}/bin/ghostty";
dummy = true;
hyprpanel = {
restartAgs = true;
restartCommand = "${pkgs.systemd}/bin/systemctl --user restart hyprpanel.service";
};
bar = {
autoHide = "never";
scrollSpeed = 5;
battery = {
hideLabelWhenFull = true;
label = true;
};
bluetooth = {
label = true;
};
clock = {
format = "%a, %b %d %I:%M:%S %p";
icon = "󰸗";
showIcon = true;
showTime = true;
};
launcher = {
icon = " ";
autoDetectIcon = true;
};
media = {
format = "{artist: - }{title}";
show_active_only = true;
show_label = true;
truncation = true;
truncation_size = 30;
};
network = {
label = true;
showWifiInfo = true;
truncation = true;
truncation_size = 10;
};
notifications = {
show_total = false;
hideCountWhenZero = true;
};
volume = {
label = true;
scrollDown = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
scrollUp = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
rightClick = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
};
windowtitle = {
icon = true;
label = true;
class_name = false;
custom_title = true;
truncation = true;
truncation_size = 50;
};
workspaces = {
show_icons = false;
show_numbered = false;
showApplicationIcons = true;
showAllActive = true;
showWsIcons = true;
numbered_active_indicator = "highlight";
workspaces = 20;
monitorSpecific = true;
reverse_scroll = false;
scroll_speed = 5;
spacing = 1.0;
workspaceMask = true;
ignored = "";
applicationIconEmptyWorkspace = "";
applicationIconFallback = "󰣆";
icons = {
active = "";
available = "";
occupied = "";
};
};
customModules = {
scrollSpeed = 5;
cava = {
showIcon = true;
icon = "";
spaceCharacter = "";
showActiveOnly = true;
stereo = false;
autoSensitivity = true;
bars = 10;
channels = 2;
framerate = 165;
samplerate = 48000;
lowCutoff = 20;
highCutoff = 20000;
barCharacters = [
""
""
""
""
""
""
""
""
];
};
cpu = {
icon = "";
label = true;
round = true;
pollingInterval = 1000;
};
cpuTemp = {
icon = "";
label = true;
pollingInterval = 500;
round = true;
showUnit = true;
sensor = "";
};
hypridle = {
label = true;
pollingInterval = 500;
offIcon = "";
offLabel = "OFF";
onIcon = "";
onLabel = "ON";
};
hyprsunset = {
label = true;
pollingInterval = 500;
offIcon = "󰛨";
offLabel = "OFF";
onIcon = "󱩌";
onLabel = "ON";
};
kbLayout = {
icon = "󰌌";
label = true;
labelType = "code";
rightClick = "${pkgs.hyprland}/bin/hyprctl switchxkblayout monsgeek-monsgeek-keyboard next";
};
netstat = {
icon = "󰖟";
label = true;
pollingInterval = 250;
dynamicIcon = true;
round = true;
rateUnit = "auto";
networkInLabel = "";
networkOutLabel = "";
};
power = {
icon = "";
showLabel = true;
leftClick = "menu:powerdropdown";
};
microphone = {
label = true;
mutedIcon = "";
unmutedIcon = "";
leftClick = "menu:audio";
};
ram = {
icon = "";
label = true;
labelType = "percentage";
pollingInterval = 250;
round = true;
};
storage = {
icon = "󰋊";
label = true;
labelType = "percentage";
pollingInterval = 2000;
round = false;
};
submap = {
label = true;
showSubmapName = true;
enabledIcon = "󰌐";
enabledText = "ON";
disabledIcon = "󰌌";
disabledText = "OFF";
};
updates = {
label = true;
autoHide = true;
padZero = true;
pollingInterval = 1440000;
updateCommand = "nix flake update --flake ~/Projects/flake";
icon = {
pending = "󰏗";
updated = "󰏖";
};
};
weather = {
label = true;
unit = "metric";
};
};
};
menus = {
transition = "crossfade";
transitionTime = 200;
clock = {
time = {
military = false;
hideSeconds = true;
};
weather = {
enabled = true;
location = "Yelabuga";
unit = "metric";
key = "ac3df6535cac4448a4c83337252702";
};
};
dashboard = {
shortcuts = {
left = {
shortcut1 = {
command = "${pkgs.google-chrome}/bin/google-chrome-stable";
icon = "";
tooltip = "Google Chrome";
};
shortcut2 = {
command = "spotify";
icon = "";
tooltip = "Spotify";
};
shortcut3 = {
command = "${pkgs.discord}/bin/discord";
icon = "";
tooltip = "Discord";
};
shortcut4 = {
command = "ayugram-desktop";
icon = "";
tooltip = "Telegram";
};
};
right = {
shortcut1 = {
command = "${pkgs.fuzzel}/bin/fuzzel";
icon = "";
tooltip = "Search";
};
shortcut3 = {
command = "sleep 2; ${pkgs.grimblast}/bin/grimblast --notify --freeze copysave area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png";
icon = "󰄀";
tooltip = "Screenshot";
};
};
};
stats = {
enable_gpu = false;
enabled = true;
interval = 1000;
};
directories = {
enabled = true;
};
powermenu = {
avatar = {
image = "/home/hand7s/Pictures/pfp.jpg";
name = "system";
};
};
};
media = {
displayTime = true;
displayTimeTooltip = true;
noMediaText = "-";
hideAlbum = false;
hideAuthor = false;
};
power = {
confirmation = true;
showLabel = true;
logout = "${pkgs.hyprland}hyprctl dispatch exit";
reboot = "${pkgs.systemd}/bin/systemctl reboot";
shutdown = "${pkgs.systemd}/bin/systemctl poweroff";
sleep = "${pkgs.systemd}/bin/systemctl suspend";
};
volume = {
raiseMaximumVolume = false;
};
};
notifications = {
active_monitor = true;
cache_actions = true;
clearDelay = 50;
displayedTotal = 5;
showActionsOnHover = true;
timeout = 5000;
};
theme = {
matugen = false;
matugen_settings = {
contrast = 0;
mode = "dark";
scheme_type = "monochrome";
variation = "standard_1";
};
font = {
name = "Hack Font Nerd Regular";
size = "16px";
weight = 600;
};
bar = {
transparent = false;
floating = true;
layer = "top";
location = "top";
margin_bottom = "0";
margin_sides = "20px";
margin_top = "20px";
border_radius = "10px";
border = {
location = "full";
width = "2px";
};
buttons = {
enableBorders = false;
monochrome = false;
style = "default";
};
};
osd = {
enable = true;
active_monitor = true;
duration = 2500;
location = "right";
margins = "5px 5px 5px 5px";
muted_zero = false;
radius = "10px";
};
};
wallpaper = {
enable = false;
pywal = false;
image = "";
};
};
};
};
}

10
hand7s/programs/index.nix Normal file
View file

@ -0,0 +1,10 @@
{
...
}: {
programs = {
nix-index = {
enable = true;
enableFishIntegration = true;
};
};
}

9
hand7s/programs/mpv.nix Normal file
View file

@ -0,0 +1,9 @@
{
...
}: {
programs = {
mpv = {
enable = true;
};
};
}

View file

@ -0,0 +1,22 @@
{
config,
pkgs,
lib,
...
}: {
programs = {
obs-studio = {
enable = lib.mkIf (
config.home.gui.sessionType == "Hyprland"
) true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
waveform
obs-vkcapture
obs-pipewire-audio-capture
obs-webkitgtk
];
};
};
}

View file

@ -0,0 +1,19 @@
{
lib,
pkgs,
inputs,
...
}: {
programs = {
spicetify = {
enabledExtensions = with inputs.spicetify-nix.legacyPackages.${pkgs.system}.extensions; [
adblock
hidePodcasts
shuffle
];
theme = lib.mkForce inputs.spicetify-nix.legacyPackages.${pkgs.system}.themes.text;
colorScheme = lib.mkForce "Spotify";
};
};
}

View file

@ -0,0 +1,55 @@
{
...
}: {
programs = {
starship = {
enable = true;
enableFishIntegration = true;
settings = {
add_newline = true;
format = ''
[](bold blue) $hostname $os
[](bold blue) $directory$git_branch$git_commit$git_state$git_metrics$git_status
[>](bold blue)
'';
right_format = ''$cmd_duration ($character) at $time'';
os = {
format = "on [($name $codename$version$edition $symbol )]($style)";
style = "bold blue";
disabled = false;
};
hostname = {
ssh_only = false;
format = "[$hostname]($style)";
style = "bold red";
disabled = false;
};
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
time = {
disabled = false;
format = " [$time]($style)";
time_format = "%H:%M";
utc_time_offset = "local";
style = "pale blue";
};
cmd_duration = {
disabled = false;
min_time = 250;
show_milliseconds = false;
show_notifications = false;
format = "was [$duration](bold green)";
};
};
};
};
}

View file

@ -0,0 +1,17 @@
{
config,
lib,
...
}: {
programs = {
swaylock = {
enable = lib.mkIf (
config.home.gui.sessionType == "Sway"
) true;
settings = {
show-failed-attempts = true;
};
};
};
}

View file

@ -0,0 +1,45 @@
{
lib,
pkgs,
...
}: {
programs = {
vscode = {
profiles = {
default = {
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
ms-vscode-remote.vscode-remote-extensionpack
ms-vsliveshare.vsliveshare
redhat.vscode-yaml
redhat.ansible
];
userSettings = lib.mkForce {
"editor.fontFamily" = "'Hack Nerd Font'";
"editor.fontSize" = 16;
"editor.cursorBlinking" = "smooth";
"editor.cursorSmoothCaretAnimation" = "on";
"editor.wordWrap" = "on";
"workbench.colorTheme" = "Blazing Red";
"workbench.sideBar.location" = "right";
"workbench.activityBar.location" = "top";
"workbench.editor.editorActionsLocation" = "titleBar";
"workbench.editor.showTabs" = "none";
"window.menuBarVisibility" = "hidden";
"files.autoSave" = "afterDelay";
"[nix]" = {
"editor.insertSpaces" = true;
"editor.tabSize" = 4;
};
};
};
};
};
};
}

1949
hand7s/programs/yambar.nix Normal file

File diff suppressed because it is too large Load diff

61
hand7s/programs/yazi.nix Normal file
View file

@ -0,0 +1,61 @@
{
pkgs,
...
}: {
programs = {
yazi = {
enable = true;
enableFishIntegration = true;
shellWrapperName = "yz";
settings = {
manager = {
sort_by = "natural";
sort_sensitive = true;
sort_reverse = false;
sort_translit = true;
linemode = "size";
show_hidden = true;
show_symlink = true;
};
preview = {
tab_size = 4;
image_filter = "lanczos3";
image_quality = 90;
};
opener = {
play = [
{
run = "${pkgs.mpv}/bin/mpv ''$@''";
block = true;
for = "unix";
}
];
edit = [
{
run = "${pkgs.helix}/bin/hx ''$@''";
block = true;
for = "unix";
}
];
open = [
{
run = "${pkgs.xdg-utils}/bin/xdg-open ''$@''";
block = true;
for = "unix";
}
];
};
input = {
cursor_blink = true;
};
};
};
};
}

View file

@ -0,0 +1,10 @@
{
...
}: {
programs = {
zoxide = {
enable = true;
enableFishIntegration = true;
};
};
}