about summary refs log tree commit diff
path: root/modules/wayland/default.nix
blob: 62a72a1978052341c07334f4e4404571d7e12bdd (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
28
29
30
31
32
33
34
35
{pkgs, ...}:
let
  terminal = symlinkJoin {
    name = "alacritty";
    paths = [ pkgs.alacritty ];
    buildInputs = [ pkgs.makeWrapper ];
    postBuild = ''
      wrapProgram $out/bin/alacritty \
        --add-flags "--config-file ${./alacritty.yml}"
    ''
  };
  dwl = (pkgs.dwl.overrideDerivation (old: {
    src = pkgs.fetchFromGitHub {
      owner = "djpohly";
      repo = "dwl";
      rev = "v0.2.1";
      sha256 = "sha256:0js8xjc2rx1ml6s58s90jrak5n7vh3kj5na2j4yy3qy0cb501xcm";
    };
    patches = [];
  })).override {
    conf = ./dwl.config.h;
  };
in
  {
    environment.systemPackages = [
      pkgs.firefox-wayland
      terminal
      dwl
      pkgs.bemenu
      pkgs.wl_clipboard
      pkgs.grim
      pkgs.slurp
      pkgs.wf-recorder
    ];
  }