niri: disable desktop stuff for server

This commit is contained in:
Christoph Hollizeck 2025-10-30 23:56:37 +01:00
parent cddca4ee54
commit 82f7af3856
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 120 additions and 107 deletions

View file

@ -1,26 +1,29 @@
{
flake.modules.homeManager.cholli =
{ ... }:
{ lib, osConfig, ... }:
let
picture-path = "/home/cholli/Pictures/firewatch.jpg";
in
{
home.file = {
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
};
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
wayland.windowManager.hyprland.settings.exec-once = [
''hyprctl hyprpaper wallpaper "DP-1,${picture-path}"''
];
services.hyprpaper = {
enable = true;
settings = {
preload = [ picture-path ];
wallpaper = "DP-1,${picture-path}";
home.file = {
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
};
};
wayland.windowManager.hyprland.settings.exec-once = [
''hyprctl hyprpaper wallpaper "DP-1,${picture-path}"''
];
services.hyprpaper = {
enable = true;
settings = {
preload = [ picture-path ];
wallpaper = "DP-1,${picture-path}";
};
};
};
};
}