Rename nvidia option, move gui stuff to its own file

This commit is contained in:
batteredbunny 2024-05-02 14:08:59 +03:00
parent a156fe3662
commit fa02a4c72a
2 changed files with 30 additions and 29 deletions

28
gui.nix Normal file
View file

@ -0,0 +1,28 @@
{ ... }: {
programs.gnome-disks.enable = true;
services.xserver = {
enable = true;
xkb = {
variant = "";
layout = "us";
};
videoDrivers = [ "nvidia" ];
# Enable the KDE Plasma Desktop Environment.
desktopManager.plasma5.enable = true;
};
sound.enable = true;
hardware.pulseaudio.enable = false;
security = {
sudo.wheelNeedsPassword = false;
rtkit.enable = true;
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}