about summary refs log tree commit diff
path: root/home/wm/wofi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/wm/wofi/default.nix')
-rw-r--r--home/wm/wofi/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/wm/wofi/default.nix b/home/wm/wofi/default.nix
new file mode 100644
index 0000000..ad3c759
--- /dev/null
+++ b/home/wm/wofi/default.nix
@@ -0,0 +1,8 @@
+{ config, lib, pkgs, ... }:
+let isEnabled = config.my.home.wm.windowManager == "sway";
+in {
+  config = lib.mkIf isEnabled {
+    home.packages = with pkgs; [ wofi ];
+    xdg.configFile."wofi/config".source = ./config;
+  };
+}