dotfiles/lib/nixos/modules/sway.nix

34 lines
682 B
Nix
Raw Normal View History

2024-03-22 23:38:40 +00:00
{ inputs, username, ... }:
{ pkgs, ... }:
{
services.displayManager.defaultSession = "sway";
2024-03-22 23:38:40 +00:00
programs.sway.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-wlr ];
2024-03-22 23:38:40 +00:00
};
home-manager.users.${username} =
{ pkgs, ... }:
{
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_USE_XINPUT2 = "1";
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
XDG_CURRENT_DESKTOP = "sway";
XDG_SESSION_TYPE = "wayland";
};
2024-03-22 23:38:40 +00:00
home.packages = with pkgs; [
i3status
swaybg
wdisplays
wl-clipboard
wofi
];
};
2024-03-22 23:38:40 +00:00
}