nixos-config/modules/gui.nix
2021-10-10 16:32:03 +02:00

31 lines
730 B
Nix

{ config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui.enable {
# used to set up system wide configuration, actual configuration happens in
# home-manager
programs.sway = {
enable = true;
extraPackages = [ ];
};
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
gtkUsePortal = true;
};
};
services.upower.enable = true;
# steam (and other high quality software) still ships 32 bit binaries
hardware.opengl.driSupport32Bit = lib.mkDefault pkgs.stdenv.isx86_64;
environment.systemPackages = with pkgs; [
pkgs.gnome3.adwaita-icon-theme # lutris requires system-wide installation
];
}