initial commit

This commit is contained in:
2026-03-24 19:07:42 +01:00
commit 7a2f92fd98
112 changed files with 12548 additions and 0 deletions

32
modules/core/wayland.nix Normal file
View File

@@ -0,0 +1,32 @@
{ host, pkgs, inputs, ... }:
let
vars = import ../../hosts/${host}/variables.nix;
desktopEnvironment = vars.desktopEnvironment or "niri";
in
{
programs.niri = {
enable = desktopEnvironment == "niri";
package = inputs.niri.packages.${pkgs.system}.niri-stable;
};
environment.systemPackages = with pkgs; [
xwayland
xdg-utils
];
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
] ++ (if desktopEnvironment == "niri" then [
xdg-desktop-portal-gnome
] else []);
config = if desktopEnvironment == "niri" then {
common.default = "*";
niri.default = [ "gnome" "gtk" ];
} else {};
};
security.polkit.enable = true;
}