commit 0e8e7185b0de39d77760eb3893fe3731777485e0
parent 8cc320c7b4f7388d6b8ca2e546215ceda2716620
Author: maydayv7 <maydayv7@gmail.com>
Date: Mon, 3 Aug 2026 22:24:41 +0530
fix: Fix CI
Diffstat:
15 files changed, 98 insertions(+), 31 deletions(-)
diff --git a/modules/desktop/hyprland/_settings/apps.nix b/modules/desktop/hyprland/_settings/apps.nix
@@ -78,7 +78,7 @@ lib.mkIf (osConfig != null) (
(bind (combo [mod] "V") (exec "noctalia msg panel-toggle clipboard"))
# Tools
- (bind (combo [mod] "G") (exec "pypr gamemode"))
+ (bind (combo [mod] "G") (exec "hyprutils gamemode"))
(bind (combo [mod "SHIFT"] "D") (exec "hyprutils toggle monitor ${display}"))
(bind (combo [mod] "S") (exec "hyprutils toggle shader"))
(bind (combo [mod "SHIFT"] "T") (exec "pypr toggle term"))
diff --git a/modules/desktop/hyprland/_settings/keybinds.nix b/modules/desktop/hyprland/_settings/keybinds.nix
@@ -193,9 +193,9 @@ in {
(bindOpts (combo [] "XF86MonBrightnessDown") (exec "noctalia msg brightness-down") lockedRepeat)
# Magnifier
- (bindOpts (combo [mod] "equal") (exec "pypr zoom ++0.5") lockedRepeat)
- (bindOpts (combo [mod] "minus") (exec "pypr zoom --0.5") lockedRepeat)
- (bindOpts (combo [mod "SHIFT"] "minus") (exec "pypr zoom") lockedRepeat)
+ (bindOpts (combo [mod] "equal") (exec "hyprutils magnify ++0.5") lockedRepeat)
+ (bindOpts (combo [mod] "minus") (exec "hyprutils magnify --0.5") lockedRepeat)
+ (bindOpts (combo [mod "SHIFT"] "minus") (exec "hyprutils magnify") lockedRepeat)
];
## Submaps
diff --git a/modules/games/mc-server/update.sh b/modules/games/mc-server/update.sh
diff --git a/modules/shell/shell-utils.nix b/modules/shell/shell-utils.nix
@@ -64,6 +64,26 @@ in {
btop.enable = true; # Resource Monitor
zellij.enable = true; # Terminal Multiplexer
+ # Text Search
+ ripgrep = {
+ enable = true;
+ arguments = [
+ "--smart-case"
+ "--hidden"
+ "--heading"
+ "--line-number"
+ "--column"
+ "--color=auto"
+ "--max-columns=150"
+ "--max-columns-preview"
+ "--colors=line:style:bold"
+ "--colors=path:fg:cyan"
+ "--colors=path:style:bold"
+ "--colors=match:fg:magenta"
+ "--colors=match:style:bold"
+ ];
+ };
+
# Command History Manager
hstr = {
enable = true;
diff --git a/modules/system/base.nix b/modules/system/base.nix
@@ -102,7 +102,10 @@ _: {
};
networking = {
- networkmanager.enable = true;
+ networkmanager = {
+ enable = true;
+ wifi.backend = "iwd";
+ };
firewall.enable = true;
};
diff --git a/modules/users/v7/default.nix b/modules/users/v7/default.nix
@@ -9,6 +9,7 @@ in {
...
}: let
homeDir = config.home.homeDirectory;
+ github-mcp = config.programs.mcp.servers ? github;
in {
credentials = {
inherit name;
@@ -37,29 +38,29 @@ in {
sops.templates = let
github-token = config.sops.placeholder."github-token.secret";
- in {
- "gh-hosts.yml" = {
- path = "${homeDir}/.config/gh/hosts.yml";
- content = ''
- github.com:
- git_protocol: https
- user: ${name}
- oauth_token: ${github-token}
- users:
- ${name}:
- oauth_token: ${github-token}
- '';
- };
-
- "github-mcp.sh" = {
- content = ''
+ in
+ {
+ "gh-hosts.yml" = {
+ path = "${homeDir}/.config/gh/hosts.yml";
+ content = ''
+ github.com:
+ git_protocol: https
+ user: ${name}
+ oauth_token: ${github-token}
+ users:
+ ${name}:
+ oauth_token: ${github-token}
+ '';
+ };
+ }
+ // lib.optionalAttrs github-mcp {
+ "github-mcp.sh".content = ''
export ${config.programs.mcp.servers.github.bearer_token_env_var}='${github-token}'
'';
};
- };
- programs.zsh.initContent = lib.mkAfter ''
+ programs.zsh.initContent = lib.mkIf github-mcp (lib.mkAfter ''
source ${config.sops.templates."github-mcp.sh".path}
- '';
+ '');
};
}
diff --git a/packages/update.sh b/packages/update.sh
diff --git a/scripts/audio.sh b/scripts/audio.sh
diff --git a/scripts/colors.sh b/scripts/colors.sh
diff --git a/scripts/commands.sh b/scripts/commands.sh
@@ -4,9 +4,13 @@
# Useful Commands #
temp(){
- TEMP=/tmp/"$1"
- if [ "$2" != "1" ]; then rm -rf "$TEMP"; fi
- if [ "$2" != "2" ]; then mkdir -p "$TEMP"; fi
+ TEMP="${XDG_RUNTIME_DIR:-/tmp}/$1"
+ case "${2:-}" in
+ 1) mkdir -p "$TEMP" ;;
+ 2) rm -rf "$TEMP" ;;
+ 3) ;;
+ *) rm -rf "$TEMP"; mkdir -p "$TEMP" ;;
+ esac
}
extract() {
diff --git a/scripts/hyprutils.nix b/scripts/hyprutils.nix
@@ -13,6 +13,8 @@
# Usage #
help - Show this information
backlight [up,down] - Keyboard Backlight Controls
+ gamemode - Toggle Game Mode
+ magnify [level] - Adjust magnification
toggle
float - Toggle window floating in current workspace
minimized - Show minimized windows
@@ -56,6 +58,12 @@ in
error "$1" "Try 'hyprutils help' for more information"
}
+ temp hyprutils-gamemode 3
+ GAMEMODE_STATE="$TEMP"
+ game_mode_active() {
+ [ -d "$GAMEMODE_STATE" ]
+ }
+
case "$1" in
"") error "Expected an Option" "${help}";;
"help") echo -e "## Hyprland Utility Script ##\n${help}";;
@@ -67,6 +75,32 @@ in
*) fail "Unexpected Option 'backlight $2'" ;;
esac
;;
+ "gamemode")
+ if game_mode_active
+ then
+ if pypr gamemode
+ then
+ temp hyprutils-gamemode 2
+ fi
+ elif pypr gamemode
+ then
+ temp hyprutils-gamemode 1
+ hyprctl keyword plugin:dynamic_cursors:enabled false
+ hyprshade off
+ pypr zoom 0
+ fi
+ ;;
+ "magnify")
+ if game_mode_active
+ then
+ hyprnotify 0 "Magnification disabled in Game Mode"
+ elif [ -n "$2" ]
+ then
+ pypr zoom "$2"
+ else
+ pypr zoom 0
+ fi
+ ;;
"toggle")
case "$2" in
"float")
@@ -98,10 +132,15 @@ in
fi
;;
"shader")
- hyprshade off
- mapfile SHADERS < <(hyprshade ls)
- SHADER=$(zenity --list --title="Compositor Shader Toggle" --column="Shaders" "''${SHADERS[@]}" | sed "s/^[ \t]*//")
- hyprshade on "$SHADER" && hyprctl seterror ""
+ if game_mode_active
+ then
+ hyprnotify 0 "Shaders disabled in Game Mode"
+ else
+ hyprshade off
+ mapfile SHADERS < <(hyprshade ls)
+ SHADER=$(zenity --list --title="Compositor Shader Toggle" --column="Shaders" "''${SHADERS[@]}" | sed "s/^[ \t]*//")
+ hyprshade on "$SHADER" && hyprctl seterror ""
+ fi
;;
"touchpad")
touchpad=$(hyprctl devices | grep touchpad | xargs)
diff --git a/scripts/mail.sh b/scripts/mail.sh
diff --git a/scripts/mods.sh b/scripts/mods.sh
diff --git a/scripts/packages.sh b/scripts/packages.sh
diff --git a/scripts/pci.sh b/scripts/pci.sh