nixos/system/desktop/sway.nix
Evie Litherland-Smith 14d8fba769 Enable xserver so X11 forwarding works properly
Enable autoLogin with sddm/plasma

Move some environment variable definitions around
2024-08-05 14:49:37 +01:00

82 lines
1.7 KiB
Nix

{ lib, pkgs, ... }:
{
imports = [ ./default.nix ];
environment = {
sessionVariables = {
QT_QPA_PLATFORM = "wayland";
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
};
systemPackages = with pkgs; [
wtype
wl-clipboard
libnotify
libcamera
glib
gsettings-desktop-schemas
pamixer
pavucontrol
playerctl
brightnessctl
];
};
security.pam.services.swaylock = { };
programs = {
light.enable = true;
nm-applet.enable = true;
file-roller.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
sway = {
enable = true;
package = pkgs.swayfx.overrideAttrs (old: {
passthru.providedSessions = [ "sway" ];
});
extraPackages = [ ];
wrapperFeatures.gtk = true;
xwayland.enable = true;
};
};
services = {
dbus.packages = with pkgs; [ gcr ];
gnome.gnome-keyring.enable = true;
blueman.enable = true;
accounts-daemon.enable = true;
tumbler.enable = true;
udisks2.enable = true;
gvfs = {
enable = true;
package = lib.mkForce pkgs.gnome3.gvfs;
};
greetd = {
enable = true;
settings =
let
command = "sway";
in
{
initial_session = {
inherit command;
};
default_session = {
inherit command;
};
};
};
};
qt = {
enable = true;
style = "gtk2";
platformTheme = "gtk2";
};
xdg.portal = {
enable = true;
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}