nix/desktops/common.nix

40 lines
738 B
Nix
Raw Normal View History

2023-07-05 14:58:58 +02:00
# If a GUI is enabled, install GUI apps:
{ lib, pkgs, config, ... }: {
users.users.albert = {
packages = with pkgs; [
firefox
bitwarden
steam
lutris
vlc
];
};
2023-07-06 05:02:45 +02:00
imports = [
# Software configurations
2023-07-06 05:03:44 +02:00
../software/firefox.nix
2023-07-06 05:02:45 +02:00
];
2023-07-05 14:58:58 +02: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;
};
# Configure keymap in X11
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
# Enable nVidia drivers
videoDrivers = [ "nvidia" ];
autorun = true;
};
}