45 lines
835 B
Nix
45 lines
835 B
Nix
|
{ pkgs, config, lib, ... }: {
|
||
|
|
||
|
services.xserver = {
|
||
|
enable = true;
|
||
|
desktopManager = {
|
||
|
defaultSession = "xfce";
|
||
|
xterm.enable = false;
|
||
|
xfce.enable = true;
|
||
|
};
|
||
|
displayManager = {
|
||
|
sddm = {
|
||
|
enable = true;
|
||
|
autoLogin = {
|
||
|
enable = true;
|
||
|
relogin = true;
|
||
|
user = config.users.users.mainUser.name;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# mouse/touchpad
|
||
|
# --------------
|
||
|
libinput = {
|
||
|
enable = true;
|
||
|
disableWhileTyping = true;
|
||
|
tapping = true;
|
||
|
scrollMethod = "twofinger";
|
||
|
accelSpeed = "2";
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
users.users.mainUser = {
|
||
|
isNormalUser = true;
|
||
|
name = "translator";
|
||
|
uid = 1001;
|
||
|
initialPassword = "translate";
|
||
|
};
|
||
|
|
||
|
# Packages
|
||
|
# --------
|
||
|
environment.systemPackages = with pkgs; [ arandr flameshot ];
|
||
|
|
||
|
}
|