dotfiles/modules/nixos/graphical/sway.nix

26 lines
425 B
Nix
Raw Normal View History

2023-07-02 20:37:56 +00:00
{ config, lib, ... }: {
2022-09-30 11:42:13 +00:00
config = lib.mkIf config.gui.enable {
2023-07-02 20:37:56 +00:00
programs.sway = {
enable = true;
package = null; # Use home-manager Sway instead
};
2022-09-30 11:42:13 +00:00
};
home-manager.users.${config.user} = {
2023-07-02 20:37:56 +00:00
wayland.windowManager.sway = {
enable = true;
config =
config.home-manager.users.${config.user}.xsession.windowManager.i3.config;
};
2022-09-30 11:42:13 +00:00
};
# TODO: swaybg
# TODO: swaylock
}