nixos/common/gui/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2020-05-12 08:53:09 +00:00
# Defines comfig for a "gui" system, in most cases a Desktop or Laptop
2020-05-27 20:21:35 +00:00
{ config, pkgs, ... }:
2020-05-12 08:53:09 +00:00
{
imports = [ ./pkgs.nix ];
# Basic X11/display manager config
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
2020-05-15 00:23:33 +00:00
displayManager.sddm.theme = "nx-sddm";
2020-05-12 08:53:09 +00:00
};
networking.networkmanager.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
# Additional services
services.flatpak.enable = true;
xdg.portal.enable = true;
2020-05-14 21:37:19 +00:00
xdg.portal.gtkUsePortal = true;
2020-05-12 08:53:09 +00:00
# Input config
services.xserver = {
synaptics.tapButtons = false;
libinput.enable = true;
};
# PulseAUdio networking
hardware.pulseaudio.tcp.enable = true;
hardware.pulseaudio.zeroconf.discovery.enable = true;
2020-05-12 08:53:09 +00:00
# Syncthing
services.syncthing.enable = true;
services.syncthing.user = "chris";
services.syncthing.configDir = "/home/chris/.config/syncthing";
services.syncthing.dataDir = "/home/chris";
2020-05-27 20:21:35 +00:00
# Printing
services.printing.enable = true;
services.printing.drivers = [ pkgs.gutenprint ];
services.avahi.enable = true;
services.avahi.nssmdns = true;
2020-05-12 08:53:09 +00:00
}