80 lines
1.6 KiB
Nix
Executable File
80 lines
1.6 KiB
Nix
Executable File
{ pkgs, ... }:
|
|
let
|
|
|
|
waybarWeatherScript = pkgs.writeScriptBin "waybar-weather" ''
|
|
/home/matt/.config/waybar/scripts/waybar-wttr.py
|
|
'';
|
|
|
|
waybarUpdatesScript = pkgs.writeScriptBin "waybar-updates" ''
|
|
/home/matt/.config/waybar/scripts/waybar-updates.py
|
|
'';
|
|
|
|
bing-wallpaper = pkgs.writeScriptBin "bing-wallpaper" ''
|
|
# Directory to store wallpapers
|
|
IMG_PATH="/tmp/wallpaper.jpg"
|
|
|
|
# Download if not already downloaded
|
|
URL=$(curl -s "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1" | \
|
|
jq -r '.images[0].url')
|
|
FULL_URL="https://www.bing.com$URL"
|
|
curl -s -o "$IMG_PATH" "$FULL_URL"
|
|
'';
|
|
in
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
bing-wallpaper
|
|
ddcutil
|
|
dunst
|
|
egl-wayland
|
|
file-roller
|
|
glib
|
|
gnome-calculator
|
|
gnome-calendar
|
|
gnome-disk-utility
|
|
gnome-firmware
|
|
gnome-firmware-updater
|
|
gnome-font-viewer
|
|
gnome-logs
|
|
gnome-photos
|
|
gnome-tweaks
|
|
gnome-weather
|
|
gsettings-desktop-schemas
|
|
hyprcursor
|
|
hyprland
|
|
hyprshot
|
|
libnotify
|
|
mako
|
|
meson
|
|
nautilus
|
|
networkmanagerapplet
|
|
nm-tray
|
|
nwg-dock-hyprland
|
|
nwg-drawer
|
|
nwg-look
|
|
pamixer
|
|
pavucontrol
|
|
playerctl
|
|
polkit
|
|
polkit_gnome
|
|
qt5.qtwayland
|
|
qt6.qtwayland
|
|
rofi-wayland
|
|
waybar
|
|
waybarUpdatesScript
|
|
waybarWeatherScript
|
|
wayland-protocols
|
|
wayland-utils
|
|
waypaper
|
|
wev
|
|
wl-clipboard
|
|
wlogout
|
|
wlroots
|
|
xdg-desktop-portal-hyprland
|
|
xdg-desktop-portal-gtk
|
|
xdg-desktop-portal-wlr
|
|
xorg.xhost
|
|
xsettingsd
|
|
xwayland
|
|
];
|
|
}
|