1
Fork 0
satellite/home/features/wayland/hyprland/default.nix

22 lines
615 B
Nix
Raw Normal View History

2023-06-09 13:17:34 +02:00
{ pkgs, lib, config, inputs, ... }:
let
2023-12-02 00:46:56 +01:00
hyprland-monitors = lib.concatStringsSep "\n" (lib.forEach config.satellite.monitors (m: ''
2023-06-09 13:17:34 +02:00
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
{
2023-12-02 00:46:56 +01:00
imports = [ ../global.nix ./hyprpaper.nix ];
2023-05-24 03:17:09 +02:00
wayland.windowManager.hyprland = {
enable = true;
2023-12-10 12:55:54 +01:00
package = pkgs.hyprland;
settings = { };
2023-06-09 13:17:34 +02:00
extraConfig = ''
${builtins.readFile ./hyprland.conf}
${hyprland-monitors}
'';
};
2023-05-24 03:17:09 +02:00
}