about summary refs log tree commit diff
path: root/modules/wayland/default.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-20 09:26:38 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-20 09:26:38 +0200
commit052b9c4404a2678729712092dfdbb3e2ae25997b (patch)
treebd20010bddb001acf71ba3baa6f5b6234bda2477 /modules/wayland/default.nix
parent49487eefca4e92e4d83e2cae2d91e8d5517a9e0c (diff)
downloaddots-052b9c4404a2678729712092dfdbb3e2ae25997b.tar.gz
dots-052b9c4404a2678729712092dfdbb3e2ae25997b.zip
Add demo dwl
Diffstat (limited to 'modules/wayland/default.nix')
-rw-r--r--modules/wayland/default.nix35
1 files changed, 35 insertions, 0 deletions
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
+    ];
+  }