Monitor specific configs in hosts

This commit is contained in:
2025-04-15 17:48:57 +02:00
parent 980334b44b
commit 4a884f5e6e
12 changed files with 63 additions and 65 deletions

View File

@ -6,6 +6,8 @@
{
imports = [
(lib.custom.relativeToRoot "shared/home-manager")
./hyprpaper.nix
./settings.nix
];
programs.git.signing.key = "706F53DD087A91DE";

View File

@ -0,0 +1,29 @@
# Wallpapers
{
lib,
theme,
...
}:
{
services.hyprpaper.settings =
let
wallpaper1 = builtins.toString theme.wallpaper.monitor1;
wallpaper2 = builtins.toString theme.wallpaper.monitor2;
in
{
preload = lib.mkDefault [
wallpaper1
wallpaper2
];
wallpaper =
let
common = import ../common.nix;
in
lib.mkDefault [
"${common.monitor1},${wallpaper1}"
"${common.monitor2},${wallpaper2}"
];
};
}

View File

@ -0,0 +1,12 @@
{ lib, ... }:
{
wayland.windowManager.hyprland.settings.monitor =
let
common = import ../common.nix;
in
lib.mkForce [
"${common.monitor1}, 3440x1440@175, 0x0, 1"
"${common.monitor2}, 3840x2160@60, 3440x0, 1.5, transform, 1"
];
}