From 4a53f6321bf137c4cbd8f234dd2027ad9407499b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 8 Apr 2022 08:30:59 -0700 Subject: modules: add a few more --- modules/programs/sway/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/programs/sway/default.nix (limited to 'modules/programs/sway') 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 + ''; + }; + }; +} -- cgit 1.4.1