nix-config/specializations/gnome.nix
Donovan Glover 7f05a66fa5
feat: Make username customizable
Now it's possible to use whatever username you want for your system. The
default value of "user" is good if you're concerned about information
disclosure attacks through things like the username being visible in
logs or other output.
2024-04-04 16:36:28 -04:00

42 lines
767 B
Nix

{ pkgs, lib, config, ... }:
let
inherit (config.modules.system) username;
in
{
services.xserver = {
enable = true;
desktopManager = {
gnome.enable = true;
};
displayManager = {
gdm.enable = true;
autoLogin = {
enable = true;
user = username;
};
};
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;
}