nix/nixos/common/desktops/plasma6/default.nix
albert f09474315e
Some checks failed
deploy-rs / deploy-rs (push) Failing after 1m36s
build-console-iso / build-console-iso (push) Failing after 3h10m59s
build-linode-img / build-linode-img (push) Failing after 3h11m0s
Plasma 6
2024-01-01 00:25:53 +09:00

28 lines
730 B
Nix

{ lib, config, pkgs, hostname, gpu, ... }: {
# 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.
displayManager.sddm.enable = true;
desktopManager.plasma6.enable = true;
};
}