1
0
forked from extern/nix-config
donovanglover-nix-config/modules/gnome.nix
Donovan Glover 27deb6bb43
nix: Simplify
lightdm is only enabled if no other display managers are chosen.

See ./nixos/modules/services/x11/xserver.nix in nixpkgs to verify this.
2023-07-04 16:41:31 -04:00

39 lines
706 B
Nix

{ pkgs, lib, ... }:
{
services.xserver = {
enable = true;
desktopManager = {
gnome.enable = true;
};
displayManager = {
gdm.enable = true;
autoLogin = {
enable = true;
user = "user";
};
};
excludePackages = [ pkgs.xterm ];
};
systemd.services = {
"getty@tty1".enable = false;
"autovt@tty1".enable = false;
};
i18n.inputMethod = lib.mkForce {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
hardware.pulseaudio.enable = false;
programs.hyprland.enable = lib.mkForce false;
services.greetd.enable = lib.mkForce false;
}