mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
7f05a66fa5
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.
32 lines
546 B
Nix
32 lines
546 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
let
|
|
inherit (config.modules.system) username;
|
|
in
|
|
{
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
displayManager = {
|
|
sddm.enable = true;
|
|
|
|
autoLogin = {
|
|
enable = true;
|
|
user = username;
|
|
};
|
|
};
|
|
|
|
excludePackages = [ pkgs.xterm ];
|
|
};
|
|
|
|
services.desktopManager.plasma6.enable = true;
|
|
|
|
systemd.services = {
|
|
"getty@tty1".enable = false;
|
|
"autovt@tty1".enable = false;
|
|
};
|
|
|
|
programs.hyprland.enable = lib.mkForce false;
|
|
services.greetd.enable = lib.mkForce false;
|
|
}
|