nix/desktops/common.nix
2023-07-05 21:58:58 +09:00

40 lines
No EOL
749 B
Nix

# If a GUI is enabled, install GUI apps:
{ lib, pkgs, config, ... }: {
users.users.albert = {
packages = with pkgs; [
firefox
bitwarden
steam
lutris
vlc
vscodium
];
};
# 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;
};
# Configure keymap in X11
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
libinput = {
enable = true;
touchpad.tapping = true;
};
# Enable nVidia drivers
videoDrivers = [ "nvidia" ];
autorun = true;
};
}