2024-07-28 00:51:53 +03:00
|
|
|
{ lib, config, pkgs, ... } @args: with lib; let
|
2024-06-30 03:56:48 +03:00
|
|
|
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;
|
|
|
|
};
|
2024-07-28 00:51:53 +03:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
swaykbdd
|
|
|
|
];
|
2024-06-30 03:56:48 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|