This commit is contained in:
2026-04-29 00:16:31 +03:00
parent 7d5b12ba34
commit 7a9f10ffb5
15 changed files with 248 additions and 145 deletions
+3 -3
View File
@@ -4,8 +4,8 @@
# Важно: портал должен быть собран под тот же Hyprland, что и сам Hyprland
# (есть отдельная опция именно для этого).
programs.hyprland = {
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
xdg.portal = {
@@ -17,7 +17,7 @@
# Два бэкенда: Hyprland (композитор-специфичное) + GTK (интеграция/диалоги/OpenURI)
extraPortals = [
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
+1 -1
View File
@@ -6,7 +6,7 @@
configDir = null;
extraPackages = with inputs.ags.packages.${pkgs.system}; [
extraPackages = with inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}; [
battery
mpris
hyprland
+5 -3
View File
@@ -15,16 +15,18 @@ in {
wl-clipboard
wl-clip-persist
xclip
awww
];
wayland.windowManager.hyprland = let
colors = config.lib.stylix.colors;
in {
enable = true;
configType = "hyprlang";
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
plugins = with inputs.hyprland-plugins.packages.${pkgs.system}; [
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
plugins = with inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}; [
# hyprbars # Version mismatch
];
@@ -113,7 +115,7 @@ in {
exec-once = lib.mkBefore [
"systemctl --user start plasma-polkit-agent"
"${lib.getExe' pkgs.swww "swww-daemon"}"
"awww-daemon"
"wl-clip-persist --clipboard both"
"clipse -listen"
"${lib.getExe' pkgs.udiskie "udiskie"}"
+2 -2
View File
@@ -1,6 +1,6 @@
{ pkgs, pkgs-pinned, inputs, ... }: {
{ pkgs, ... }: {
home.packages = with pkgs; [
pkgs-pinned.ayugram-desktop
ayugram-desktop
vesktop
obs-studio
mpv
+1
View File
@@ -21,6 +21,7 @@
mtr
imagemagick
wl-clipboard
pkgsCross.mingw32.wine-discord-ipc-bridge
];
xdg.mimeApps = {
+35 -12
View File
@@ -25,7 +25,7 @@
};
plugin = {
preloaders = [
{ name = "*.crdownload"; run = "noop"; }
{ url = "*.crdownload"; run = "noop"; }
];
prepend_previewers = [
@@ -37,28 +37,51 @@
];
prepend_fetchers = [
{ id = "git"; mime = "*"; run = "git"; }
{ group = "git"; url = "*"; run = "git"; }
];
};
};
plugins = with pkgs.yaziPlugins; {
plugins = let
yaziPlugin = name: pkgs.stdenvNoCC.mkDerivation {
pname = "${name}.yazi";
version = "unstable";
src = inputs.yazi-plugins;
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r ${name}.yazi/* $out/
rm -f $out/LICENSE
cp LICENSE $out/LICENSE
runHook postInstall
'';
};
in with pkgs.yaziPlugins; {
inherit
chmod
ouch
full-border
starship
mount
git
toggle-pane
;
;
full-border = {
package = yaziPlugin "full-border";
setup = true;
};
starship = {
package = starship;
setup = true;
};
git = {
package = git;
setup = true;
};
};
initLua = ''
require("git"):setup()
require("full-border"):setup()
require("starship"):setup()
Status:children_add(function()
local h = cx.active.current.hovered
if not h or ya.target_family() ~= "unix" then
@@ -83,7 +106,7 @@
}
{
on = "Y";
run = ''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'';
run = ''shell -- for path in %s; do echo "file://$path"; done | wl-copy -t text/uri-list'';
desc = "Copy files into system clipboard";
}
{