alqueva/hosts/shared/river.nix
2024-12-13 20:46:50 +00:00

51 lines
903 B
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.alqueva.river;
in {
options.alqueva.river = {
enable = lib.mkEnableOption "River";
};
config = lib.mkIf cfg.enable {
alqueva.support.wayland = true;
programs.river = {
enable = true;
xwayland.enable = false;
extraPackages = [
pkgs.wbg
pkgs.kanshi
pkgs.rivercarro
];
};
xdg.portal.wlr = {
enable = true;
settings = {
screencast = {
output_name = "HDMI-A-1";
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
};
};
};
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
slurp
grim
wf-recorder
rofi-wayland
kitty
wl-clipboard
;
};
services.gnome.gnome-keyring.enable = true;
};
}