nix/nixos/common/desktops/xfce/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

2023-12-05 12:30:44 +01:00
{ lib, config, pkgs, hostname, gpu, ... }: {
# Enable sound with pipewire.
sound.enable = true;
2023-12-05 12:33:57 +01:00
hardware.pulseaudio.enable = false;
2023-12-05 12:30:44 +01:00
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Configure keymap in X11
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
autorun = true;
videoDrivers = [ ] ++ lib.optional (builtins.isString gpu) gpu;
};
##### disable nvidia, very nice battery life.
# hardware.nvidiaOptimus.disable = lib.mkDefault true;
services.xserver = {
# https://nixos.org/manual/nixos/stable/index.html#chap-gnome
# Enable the GNOME Desktop Environment.
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
displayManager.defaultSession = "xfce";
};
environment.systemPackages = with pkgs; [
# Gnome relevant packages
papirus-icon-theme
dconf2nix # https://github.com/gvolpe/dconf2nix
];
}