diff --git a/modules/services/uwsm/module.nix b/modules/services/uwsm/module.nix new file mode 100644 index 0000000..8a35c6d --- /dev/null +++ b/modules/services/uwsm/module.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.modules.services.uwsm; + inherit (lib.modules) mkIf; + inherit (lib.options) mkEnableOption; +in { + options.modules.services.uwsm.enable = mkEnableOption "uwsm"; + config = mkIf cfg.enable { + programs.uwsm = { + enable = true; + package = pkgs.uwsm; + waylandCompositors = { + hyprland = { + prettyName = "Hyprland"; + comment = "Hyprland managed with UWSM"; + binPath = "/run/current-system/sw/bin/Hyprland"; + }; + }; + }; + }; +}