Switch to wayland and sway
This commit is contained in:
parent
f6c366611e
commit
e92cfa3b23
9 changed files with 270 additions and 195 deletions
lib/nixos/modules
31
lib/nixos/modules/sway.nix
Normal file
31
lib/nixos/modules/sway.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ inputs, username, ... }:
|
||||
{ pkgs, ... }: {
|
||||
services = {
|
||||
xserver = {
|
||||
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 wl-clipboard wofi ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue