nixos/system/desktop/sway.nix

76 lines
1.6 KiB
Nix
Raw Normal View History

2024-01-30 14:21:50 +00:00
{
lib,
2024-01-30 14:21:50 +00:00
pkgs,
...
}: {
imports = [./default.nix];
environment = {
sessionVariables.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];
2024-07-08 06:35:24 +01:00
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];
2023-11-09 11:48:40 +00:00
};
}