forked from Shinonome/dots-hyprland
added
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{
|
||||
description = "Development shell for switchwall.sh";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github.com/numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
pythonWithPackages = pkgs.python3.withPackages (ps:
|
||||
with ps; [
|
||||
materialyoucolor
|
||||
pillow
|
||||
]);
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.bash
|
||||
pkgs.jq
|
||||
pkgs.imagemagick # Provides the 'identify' command
|
||||
pkgs.ffmpeg
|
||||
pkgs.mpvpaper
|
||||
pkgs.kitty # The terminal used in the script
|
||||
pkgs.kdialog
|
||||
pkgs.libnotify # Provides notify-send
|
||||
pkgs.hyprpicker
|
||||
pkgs.matugen
|
||||
pythonWithPackages
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
export XDG_CACHE_HOME=$HOME/.cache
|
||||
export XDG_STATE_HOME=$HOME/.local/state
|
||||
export ILLOGICAL_IMPULSE_VIRTUAL_ENV=$XDG_STATE_HOME/quickshell/.venv
|
||||
export PATH=$PATH:${pkgs.matugen}/bin
|
||||
export SCRIPT_DIR=$(pwd)
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Execute the switchwall.sh script within the Nix environment.
|
||||
nix develop --command ./switchwall.sh "$@"
|
||||
Reference in New Issue
Block a user