Regenerated

This commit is contained in:
2026-03-20 08:32:44 +00:00
parent 0180c7bb0f
commit 1ca787e7fa
29 changed files with 1497 additions and 0 deletions
@@ -0,0 +1,44 @@
{ lib, config, ... }:
let
# --- Module variables ---
moduleName = "wayland";
username = config.defaultUser or "henrov";
# Top-level toggle
enableProgram = config.enableWayland or false;
in
{
# --- Option ---
options.enableWayland =
lib.mkEnableOption "Enable Wayland support";
# --- Config ---
config = lib.mkIf enableProgram {
# Enable XDG portals (required for Wayland apps)
xdg.portal.enable = true;
# Home Manager configuration
home-manager.users.${username} = {
xdg.portal = {
enable = true;
# Only unavoidable pkgs reference
extraPortals = [
config.pkgs.xdg-desktop-portal-hyprland
];
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
};
};
# Wayland-related user package
home.packages = [
config.pkgs.uwsm
];
};
};
}