dotfiles/lib/nixos/modules/sway.nix
Oliver Davies 504fb96771 Add swaybg
At the moment, it's not being run automatically when sway starts, so I
need to add it to my sway configuration.
2024-05-20 19:11:04 +01:00

30 lines
687 B
Nix

{ inputs, username, ... }:
{ pkgs, ... }: {
services = {
displayManager = {
defaultSession = "sway";
sddm.enable = true;
};
};
programs.sway.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr ];
};
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";
};
home.packages = with pkgs; [ i3status swaybg wdisplays wl-clipboard wofi ];
};
}