nix-config/home/desktop-river/default.nix

22 lines
570 B
Nix

{ config, pkgs, ... }:
{
imports = [ ./bemenu.nix ./waybar.nix ./foot.nix ./mako.nix ];
home.packages = with pkgs; [ river swaybg playerctl pamixer light ];
programs.zsh.loginExtra = ''
[[ -z "''${DISPLAY}" ]] && [[ "$(tty)" = "/dev/tty1" ]] && \
export XKB_DEFAULT_LAYOUT="us"
export XKB_DEFAULT_VARIANT="altgr-intl"
export XKB_DEFAULT_OPTIONS="caps:escape"
exec ${pkgs.river}/bin/river
'';
home.file.river_init = {
executable = true;
target = "${config.xdg.configHome}/river/init";
source = ./init;
};
}