2024-10-11 23:27:07 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.module.desktop.sway;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
module.desktop.sway = {
|
|
|
|
enable = mkEnableOption "Use Sway WM.";
|
|
|
|
extraConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
module = {
|
|
|
|
desktop = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
brightness.enable = true;
|
|
|
|
portal.enable = true;
|
|
|
|
sound.enable = true;
|
|
|
|
waybar.enable = true;
|
|
|
|
wayland.enable = true;
|
|
|
|
};
|
|
|
|
realtime.enable = true;
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
services.gnome.gnome-keyring.enable = mkForce false;
|
|
|
|
environment.variables.XDG_CURRENT_DESKTOP = "sway";
|
2024-06-30 03:56:48 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures = {
|
|
|
|
base = true;
|
|
|
|
gtk = true;
|
|
|
|
};
|
2024-10-14 04:51:19 +03:00
|
|
|
extraPackages = with pkgs; [ swaykbdd ];
|
2024-10-11 23:27:07 +03:00
|
|
|
};
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
}
|