2024-09-29 19:22:15 +03:00
|
|
|
{ lib, config, pkgs, ... }: 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.";
|
2024-09-29 20:02:20 +03:00
|
|
|
extraConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
type = types.str;
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-08-24 20:29:51 +03:00
|
|
|
module = {
|
|
|
|
desktop = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
brightness.enable = true;
|
|
|
|
portal.enable = true;
|
|
|
|
sound.enable = true;
|
2024-09-29 19:22:15 +03:00
|
|
|
waybar.enable = true;
|
2024-08-24 20:29:51 +03:00
|
|
|
wayland.enable = true;
|
|
|
|
};
|
|
|
|
realtime.enable = true;
|
2024-06-30 03:56:48 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
services.gnome.gnome-keyring.enable = mkForce false;
|
|
|
|
environment.variables.XDG_CURRENT_DESKTOP = "sway";
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|