confix/nixos/wayland.nix

69 lines
1.1 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
];
};
};
services = {
cage = {
enable = true;
program = "${pkgs.foot}/bin/foot"
user = "${user.name}";
};
};
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;
};
};
}