confix/nixos/wayland.nix
2024-01-16 19:43:56 -08:00

62 lines
1.0 KiB
Nix

# Wayland configuration.nix
{ config, lib, pkgs, inputs, user, ... }:
{
imports = [
./gui.nix
];
environment = {
variables = {
TERMINAL = "foot";
};
};
xdg = {
autostart.enable = true;
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-wlr
];
configPackages = [
pkgs.xdg-desktop-portal-wlr
];
};
};
programs = {
river = {
enable = true;
extraPackages = with pkgs; [
bemenu
bemoji
cliphist
grim
foot
imv
kanshi
mako
pinentry-bemenu
slurp
swappy
swaylock
swww
tessen
waybar
wf-recorder
wl-clipboard
wtype
];
};
wayfire = {
enable = true;
plugins = with pkgs.wayfirePlugins; [
wcm
wf-shell
wayfire-plugins-extra
];
};
xwayland = {
enable = true;
};
};
}