From 052b9c4404a2678729712092dfdbb3e2ae25997b Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 20 Apr 2021 09:26:38 +0200 Subject: Add demo dwl --- modules/wayland/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 modules/wayland/default.nix (limited to 'modules/wayland/default.nix') diff --git a/modules/wayland/default.nix b/modules/wayland/default.nix new file mode 100644 index 0000000..62a72a1 --- /dev/null +++ b/modules/wayland/default.nix @@ -0,0 +1,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 + ]; + } -- cgit 1.4.1