nix-config/_/nixos/_mixins/optional/gnome.nix

36 lines
835 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
services = {
xserver = {
2023-09-19 17:05:08 +00:00
enable = true;
2023-09-24 20:01:30 +00:00
dpi = 180;
displayManager.gdm = {
enable = true;
2023-09-24 18:39:34 +00:00
wayland = true;
autoSuspend = false;
2023-09-20 14:02:15 +00:00
};
desktopManager.gnome = {
enable = true;
};
2023-09-24 20:01:30 +00:00
excludePackages = [ pkgs.xterm ];
};
geoclue2.enable = true;
gnome.games.enable = true;
};
2023-09-20 14:02:15 +00:00
networking.networkmanager.enable = true;
2023-09-19 18:17:19 +00:00
services.avahi.enable = true;
2023-09-20 14:02:15 +00:00
# console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
# environment.variables = {
# GDK_SCALE = "2";
# GDK_DPI_SCALE = "0.5";
# _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
# };
2023-09-24 20:01:30 +00:00
2023-09-19 18:17:19 +00:00
# Enable CUPS to print documents.
services.printing.enable = true;
services.avahi.nssmdns = true;
# for a WiFi printer
services.avahi.openFirewall = true;
}