hyprland again, waybar updates, bluetooth updates, wallpaper updates

This commit is contained in:
mjallen18
2025-06-26 12:10:55 -05:00
parent 5272494733
commit 91873cc197
13 changed files with 568 additions and 501 deletions

View File

@@ -1,7 +1,17 @@
{ pkgs, lib, ... }:
let
# sddmTheme = "catppuccin-mocha";
theme = import ./theme.nix { inherit pkgs; };
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
{
imports = [
@@ -15,7 +25,8 @@ in
sddm = {
enable = true;
package = pkgs.kdePackages.sddm;
theme = theme.sddmTheme;
extraPackages = [ theme.sddm.package ];
theme = theme.sddm.themeName;
wayland.enable = true;
};
# Disable gdm
@@ -47,6 +58,22 @@ in
};
systemd = {
services = {
preload-bing-wallpaper = {
wants = [ "network.target" ];
after = [ "network.target" ];
wantedBy = [ "graphical-session.target" ];
path = [
pkgs.bash
pkgs.jq
pkgs.curl
bing-wallpaper
];
script = ''
bing-wallpaper
'';
};
};
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
@@ -92,6 +119,7 @@ in
xdgOpenUsePortal = false;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
];
};