nixos/common/gui/default.nix

41 lines
996 B
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
{ config, ... }:
{
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-12 08:53:09 +00:00
}