about summary refs log tree commit diff
path: root/modules/programs/sway
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 08:30:59 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 08:30:59 -0700
commit4a53f6321bf137c4cbd8f234dd2027ad9407499b (patch)
tree7ed97487e97bc4da276756bf9d4558a055ef93e8 /modules/programs/sway
parenthome: add more configurations for home-manager (diff)
downloadworld-4a53f6321bf137c4cbd8f234dd2027ad9407499b.tar.gz
modules: add a few more
Diffstat (limited to 'modules/programs/sway')
-rw-r--r--modules/programs/sway/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/programs/sway/default.nix b/modules/programs/sway/default.nix
new file mode 100644
index 0000000..1fb4c00
--- /dev/null
+++ b/modules/programs/sway/default.nix
@@ -0,0 +1,25 @@
+{ pkgs, config, lib, ... }:
+let cfg = config.my.programs.sway;
+in {
+  options.my.programs.sway = with lib; {
+    enable = mkEnableOption "sway configuration";
+  };
+
+  config = lib.mkIf cfg.enable {
+    programs.sway = {
+      enable = true;
+      wrapperFeatures.gtk = true;
+      extraPackages = with pkgs; [
+        brightnessctl
+        polkit_gnome
+        xsettingsd
+        swaylock
+        swayidle
+        wl-clipboard
+      ];
+      extraSessionCommands = ''
+        export MOZ_ENABLE_WAYLAND=1
+      '';
+    };
+  };
+}