Files
nixos-config/modules/system/services.nix
2025-09-13 02:38:36 -04:00

57 lines
1.4 KiB
Nix

{
...
}:
{
services = {
xserver = {
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
enable = true;
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
# Enable touchpad support (enabled default in most desktopManager).
# libinput.enable = true;
};
# Enable the KDE Plasma Desktop Environment.
displayManager.sddm = {
enable = true;
# theme = "catppuccin-mocha-pink";
};
desktopManager.plasma6.enable = true;
# Enable CUPS to print documents.
printing.enable = true;
# Enable sound with pipewire.
pulseaudio.enable = false;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
# jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
# media-session.enable = true;
};
# Enable the OpenSSH daemon. (Look into Fail2Ban in the future)
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
AllowUsers = [ "eclypse" ];
};
};
};
}