nixos-configuration/desktop.nix

76 lines
2.1 KiB
Nix

{ pkgs, lib, ... }:
{
boot.kernelParams = [ "mem_sleep_default=deep" ];
systemd.sleep.extraConfig = ''
HybernateDelaySec=30m
SuspendState=mem
'';
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# This makes Spyro Reignighted Trilogy not crash
networking.extraHosts =
''
0.0.0.0 datarouter.ol.epicgames.com
0.0.0.0 datarouter-weighted.ol.epicgames.com
'';
# Set your time zone.
# time.timeZone = "America/Chicago";
services.automatic-timezoned.enable = true;
services.geoclue2.enableDemoAgent = lib.mkForce true;
# Select internationalisation properties.
i18n.defaultLocale = "en_US.utf8";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the Pantheon Desktop Environment.
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.pantheon.enable = true;
# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "";
};
# Enable CUPS to print documents.
services.printing.enable = true;
services.avahi.enable = true;
services.avahi.openFirewall = true;
# services.ipp-usb.enable = true;
programs.dconf.enable = true;
# services.gnome.evolution-data-server.enable = true;
# optional to use google/nextcloud calendar
# services.gnome.gnome-online-accounts.enable = true;
# optional to use google/nextcloud calendar
# services.gnome.gnome-keyring.enable = true;
hardware.keyboard.zsa.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.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;
};
}