confix/nixos/wayland.nix

52 lines
835 B
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
mako
slurp
swappy
swaylock
swww
tessen
way-displays
wf-recorder
wl-clipboard
wtype
];
};
xwayland = {
enable = true;
};
};
}