nixos-configuration/desktop.nix

84 lines
2.3 KiB
Nix
Raw Permalink Normal View History

2023-06-14 18:26:41 +00:00
{ pkgs, lib, ... }:
2023-02-11 01:44:49 +00:00
2023-02-11 01:40:39 +00:00
{
# 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.
2023-06-14 18:26:41 +00:00
# time.timeZone = "America/Chicago";
services.automatic-timezoned.enable = true;
services.geoclue2.enableDemoAgent = lib.mkForce true;
2023-02-11 01:40:39 +00:00
# Select internationalisation properties.
i18n.defaultLocale = "en_US.utf8";
2024-02-19 17:02:55 +00:00
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
2023-02-11 01:40:39 +00:00
# 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
2024-05-23 22:27:00 +00:00
services.xserver.xkb = {
2023-02-11 01:40:39 +00:00
layout = "us";
2024-05-23 22:27:00 +00:00
variant = "";
2023-02-11 01:40:39 +00:00
};
# Enable CUPS to print documents.
services.printing.enable = true;
services.avahi.enable = true;
services.avahi.openFirewall = true;
# services.ipp-usb.enable = true;
2023-03-21 03:18:54 +00:00
programs.dconf.enable = true;
2023-05-08 15:24:11 +00:00
# services.gnome.evolution-data-server.enable = true;
2023-03-21 03:18:54 +00:00
# optional to use google/nextcloud calendar
2023-05-08 15:24:11 +00:00
# services.gnome.gnome-online-accounts.enable = true;
2023-03-21 03:18:54 +00:00
# optional to use google/nextcloud calendar
2023-05-08 15:24:11 +00:00
# services.gnome.gnome-keyring.enable = true;
2023-03-21 03:18:54 +00:00
2023-11-01 14:49:41 +00:00
hardware.keyboard.zsa.enable = true;
2023-02-11 01:40:39 +00:00
# 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;
};
}