nix/nixos/common/desktops/plasma6/default.nix

30 lines
753 B
Nix
Raw Normal View History

2024-01-01 00:59:07 +01:00
{ lib, inputs, config, pkgs, hostname, gpu, ... }: {
imports = [ inputs.kde2nix.nixosModules.plasma6 ];
2023-12-31 16:25:53 +01: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 = "";
autorun = true;
videoDrivers = [ ] ++ lib.optional (builtins.isString gpu) gpu;
};
services.xserver = {
# https://nixos.org/manual/nixos/stable/index.html#chap-gnome
# Enable the KDE Plasma 6 Desktop Environment.
desktopManager.plasma6.enable = true;
};
}