diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-08 08:30:59 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-08 08:30:59 -0700 |
commit | 4a53f6321bf137c4cbd8f234dd2027ad9407499b (patch) | |
tree | 7ed97487e97bc4da276756bf9d4558a055ef93e8 /modules/programs/sway | |
parent | home: add more configurations for home-manager (diff) | |
download | world-4a53f6321bf137c4cbd8f234dd2027ad9407499b.tar.gz |
modules: add a few more
Diffstat (limited to 'modules/programs/sway')
-rw-r--r-- | modules/programs/sway/default.nix | 25 |
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 + ''; + }; + }; +} |