aboutsummaryrefslogtreecommitdiff
path: root/home-manager/laptop/hyprland/default.nix
blob: 9f911e13c004143bc3e6c7cfb4e2eddcfb7d438a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs, ... }:
let
  configFile = builtins.readFile ./hyprland.conf;
  scripts = ''
    $scripts=${./scripts}
  '';
  overrides = ''
    exec-once=swww init && swww img ${./cat.png}
  '';
  extraConfig = scripts + configFile + overrides;
  
in
{
  home.packages = with pkgs; [
    swww
    brightnessctl
    slurp
    grim
    cliphist
    xdg-desktop-portal-hyprland
  ];
  wayland.windowManager.hyprland = {
    enable = true;
    package = pkgs.hyprland;
    inherit extraConfig;
  };
}