flake/users/guanranwang/nixos/profiles/common/graphical/home/scripts/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-05 07:48:54 +00:00
{pkgs, ...}: let
binPATH = ".local/bin";
in {
2023-12-18 19:06:50 +00:00
home.packages = with pkgs; [
pamixer
brightnessctl
grim
slurp
swappy
jq
#mpvpaper
#swww
libnotify
dunst
];
2023-12-05 07:48:54 +00:00
home.sessionPath = ["$HOME/${binPATH}"];
2023-12-16 07:22:27 +00:00
home.file = builtins.mapAttrs (_name: value: value // {executable = true;}) {
2023-12-05 07:48:54 +00:00
${binPATH} = {
2023-12-02 09:22:38 +00:00
source = ./bin;
recursive = true;
};
2023-12-15 10:38:26 +00:00
"${binPATH}/lofi".source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
2023-12-02 09:22:38 +00:00
};
2023-12-15 10:38:26 +00:00
"${binPATH}/screenshot".source = pkgs.substitute {
src = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
};
replacements = ["--replace" "DIR=\${SCREENSHOT_DIR:=$HOME/Screenshots}" "DIR=$HOME/Pictures/Screenshots"]; # i dont like using an environment variable
2023-12-05 07:48:54 +00:00
};
2023-11-25 09:02:50 +00:00
};
}