hyprland: setup hyprpanel, fix nvidia issues, accomodate new shadow config

a big part of this was an accidental commit of the gitbutler integration commit that i accidently commited when it broke due to nix rust issues. the new server was also added in this, but further config happens in #1
This commit is contained in:
Christoph Hollizeck 2024-11-08 00:37:31 +01:00
parent 83db829e19
commit 8f3c53dee5
Signed by: Daholli
GPG key ID: 1763BB530F50279E
10 changed files with 92 additions and 14 deletions

View file

@ -0,0 +1,42 @@
{
config,
inputs,
lib,
namespace,
pkgs,
system,
...
}:
let
inherit (lib) mkIf mkEnableOption;
# hyprpaper-package = inputs.hyprpaper.packages.${system}.hyprpaper;
cfg = config.${namespace}.desktop.addons.hyprpaper;
username = config.${namespace}.user.name;
in
{
options.${namespace}.desktop.addons.hyprpaper = {
enable = mkEnableOption "Enable Hyprpaper";
};
config = mkIf cfg.enable {
snowfallorg.users.${username}.home.config = {
home.file = {
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
};
services.hyprpaper = {
enable = true;
settings = {
preload = [
"/home/${username}/Pictures/firewatch.jpg"
];
wallpaper = "monitor DP-2, /home/${username}/Pictures/firewatch.jpg";
};
};
};
};
}