nix/module/Sway.nix

34 lines
693 B
Nix

{ lib, config, ... } @args: with lib; let
cfg = config.module.desktop.sway;
in {
options = {
module.desktop.sway = {
enable = mkEnableOption "Use Sway WM.";
};
};
config = mkIf cfg.enable {
module.desktop = {
app.common.enable = true;
bluetooth.enable = true;
brightness.enable = true;
portal.enable = true;
realtime.enable = true;
sound.enable = true;
wayland.enable = true;
};
services.gnome.gnome-keyring.enable = mkForce false;
environment.variables.XDG_CURRENT_DESKTOP = "sway";
programs.waybar.enable = true;
programs.sway = {
enable = true;
wrapperFeatures = {
base = true;
gtk = true;
};
};
};
}