Rebuild files to add wayland as separate file in system/core

This commit is contained in:
2026-03-07 15:53:17 +01:00
parent d11528d1e2
commit 6a70bc93e9
7 changed files with 606 additions and 549 deletions
+8
View File
@@ -0,0 +1,8 @@
{ config, pkgs, lib, user, inputs, ... }:
{
imports = [
./top.nix
./wayland.nix
];
# .. put any code here
}
@@ -0,0 +1,35 @@
{ config, pkgs, lib, user, ... }:
{
# Enable essential services for a Wayland session
services.dbus.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
# XDG Desktop Portal settings for better application integration
xdg.portal = {
enable = true;
config.common.default = [ "hyprland" "gtk" ];
};
# Environment variables for a Wayland session
environment.sessionVariables = {
XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland";
XCURSOR_SIZE = "24";
};
# Home Manager Wayland configurations
home-manager.users.${user.username} = {
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
};
};
};
}