nix/module/Sway.nix

38 lines
737 B
Nix
Raw Normal View History

2024-07-28 00:51:53 +03:00
{ lib, config, pkgs, ... } @args: with lib; let
cfg = config.module.desktop.sway;
in {
options = {
module.desktop.sway = {
enable = mkEnableOption "Use Sway WM.";
};
};
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;
wayland.enable = true;
};
realtime.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
];
};
};
}