From d9d5e2b0e807b2f9ecc80787059bc9eab0c75054 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Tue, 26 Nov 2024 22:07:44 +0300 Subject: [PATCH] fix: Packages --- home-manager/modules/zsh.nix | 2 +- home-manager/patterns/hyprland.nix | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home-manager/modules/zsh.nix b/home-manager/modules/zsh.nix index cac983f..a1835a1 100644 --- a/home-manager/modules/zsh.nix +++ b/home-manager/modules/zsh.nix @@ -69,7 +69,7 @@ ll = "ls -l"; se = "sudoedit"; ff = "fastfetch"; - cat = "bat"; + cat = "${pkgs.lib.getExe pkgs.bat}"; cd = "z"; }; diff --git a/home-manager/patterns/hyprland.nix b/home-manager/patterns/hyprland.nix index 1bcaa00..f111752 100644 --- a/home-manager/patterns/hyprland.nix +++ b/home-manager/patterns/hyprland.nix @@ -15,6 +15,7 @@ colors = config.lib.stylix.colors; wallpaper_changer = pkgs.writers.writePython3Bin "wallpaper_changer" { + libraries = [ pkgs.python3Packages.requests ]; flakeIgnore = [ "E501" "E111" "E701" "E241" "E731" ]; } /*py*/ '' import requests as requests @@ -131,7 +132,7 @@ exec-once = [ "systemctl --user start plasma-polkit-agent" "swww init" - "python3 ${lib.getExe wallpaper_changer}" + "${lib.getExe wallpaper_changer}" "${lib.getExe pkgs.hyprpanel}" "${clipsync}" "clipse -listen" @@ -215,7 +216,7 @@ "$mainMod, B, exec, pkill -SIGUSR1 waybar" #"$mainMod, W, exec, pkill -SIGUSR2 waybar" - "$mainMod, W, exec, python3 ${lib.getExe wallpaper_changer}" + "$mainMod, W, exec, ${lib.getExe wallpaper_changer}" ]; # Move/resize windows with mainMod + LMB/RMB and dragging