nix/desktops/common.nix
2023-07-06 12:03:44 +09:00

45 lines
No EOL
829 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
];
};
imports = [
# Software configurations
../software/firefox.nix
];
# 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;
};
}