Files
nixos-config/modules/system/services.nix

76 lines
1.5 KiB
Nix
Raw Normal View History

2025-09-13 02:38:36 -04:00
{
2025-10-23 12:25:08 -04:00
pkgs,
2025-09-13 02:38:36 -04:00
...
}:
{
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 = "";
};
};
2025-11-11 22:47:51 -05:00
# Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true;
2025-09-13 02:38:36 -04:00
# Enable CUPS to print documents.
2025-10-23 12:25:08 -04:00
printing = {
enable = true;
drivers = with pkgs; [
gutenprint
cnijfilter2
];
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
2025-09-13 02:38:36 -04:00
# 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;
};
2025-11-09 14:34:44 -05:00
upower.enable = true;
2025-09-13 02:38:36 -04:00
# Enable the OpenSSH daemon. (Look into Fail2Ban in the future)
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
AllowUsers = [ "eclypse" ];
};
};
};
2025-10-23 12:25:08 -04:00
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
};
sane = {
enable = true;
};
};
2025-09-13 02:38:36 -04:00
}