added material symbol

This commit is contained in:
kenji
2025-08-11 22:57:23 -05:00
parent 1902d47c1e
commit 40f9981167
4 changed files with 108 additions and 17 deletions
+61
View File
@@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1754725699,
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
+46 -17
View File
@@ -1,9 +1,9 @@
{ {
description = "Development shell for switchwall.sh"; description = "A flake that provides a runnable switchwall script.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github.com/numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { outputs = {
@@ -17,34 +17,63 @@
pythonWithPackages = pkgs.python3.withPackages (ps: pythonWithPackages = pkgs.python3.withPackages (ps:
with ps; [ with ps; [
dbus-python
materialyoucolor materialyoucolor
pillow pillow
]); ]);
in {
devShells.default = pkgs.mkShell { switchwallScript = pkgs.stdenv.mkDerivation {
packages = [ pname = "switchwall";
pkgs.bash version = "1.0";
src = ./.;
buildInputs = [
pkgs.makeWrapper
pkgs.jq pkgs.jq
pkgs.imagemagick # Provides the 'identify' command pkgs.imagemagick
pkgs.ffmpeg pkgs.ffmpeg
pkgs.mpvpaper pkgs.mpvpaper
pkgs.kitty # The terminal used in the script pkgs.libnotify
pkgs.kdialog
pkgs.libnotify # Provides notify-send
pkgs.hyprpicker pkgs.hyprpicker
pkgs.matugen pkgs.matugen
pkgs.bash
pkgs.pipewire
pkgs.dbus
pkgs.kdePackages.plasma-desktop
# pkgs.kdePackages.plasma-framework
pkgs.kdePackages.kdialog
pythonWithPackages pythonWithPackages
]; ];
shellHook = '' nativeBuildInputs = [pkgs.qt6.wrapQtAppsHook];
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache installPhase = ''
export XDG_STATE_HOME=$HOME/.local/state mkdir -p $out/bin
export ILLOGICAL_IMPULSE_VIRTUAL_ENV=$XDG_STATE_HOME/quickshell/.venv cp switchwall.sh $out/bin/
export PATH=$PATH:${pkgs.matugen}/bin chmod +x $out/bin/switchwall.sh
export SCRIPT_DIR=$(pwd)
wrapProgram $out/bin/switchwall.sh \
--prefix PATH : "${pkgs.lib.makeBinPath [
pkgs.jq
pkgs.imagemagick
pkgs.ffmpeg
pkgs.mpvpaper
pkgs.kdePackages.kdialog
pkgs.libnotify
pkgs.hyprpicker
pkgs.matugen
pythonWithPackages
pkgs.bash
pkgs.pipewire
pkgs.kdePackages.plasma-desktop
]}"
''; '';
}; };
in {
packages.default = switchwallScript;
apps.default = flake-utils.lib.mkApp {
drv = switchwallScript;
};
} }
); );
} }
View File
+1
View File
@@ -47,6 +47,7 @@ with pkgs; [
starship starship
# ttf-gabarito-git # ttf-gabarito-git
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
material-symbols
# ttf-material-symbols-variable-git # ttf-material-symbols-variable-git
# ttf-readex-pro # ttf-readex-pro
# ttf-rubik-vf # ttf-rubik-vf