1
Fork 0
satellite/home/features/wayland/hyprland/default.nix
2023-12-10 12:55:54 +01:00

22 lines
615 B
Nix

{ pkgs, lib, config, inputs, ... }:
let
hyprland-monitors = lib.concatStringsSep "\n" (lib.forEach config.satellite.monitors (m: ''
monitor=${m.name},${toString m.width}x${toString m.height}@${toString m.refreshRate},${toString m.x}x${toString m.y},1
${lib.optionalString (m.workspace != null) "workspace=${m.name},${m.workspace}"}
''));
in
{
imports = [ ../global.nix ./hyprpaper.nix ];
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
settings = { };
extraConfig = ''
${builtins.readFile ./hyprland.conf}
${hyprland-monitors}
'';
};
}