uwsm/module.nix: init

a
This commit is contained in:
Charlie Root 2025-04-06 11:30:10 +02:00
commit 980ccb3971
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -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";
};
};
};
};
}