home/nixos/graphical.nix
2024-06-27 11:24:08 +02:00

56 lines
1.0 KiB
Nix

{
pkgs,
background-image ? "pan-wire-3.png",
...
}:
{
# Enable the X11 windowing system.
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
xkb = {
layout = "fox";
options = "caps:escape";
extraLayouts.fox = {
description = "Layout suitable to be used by a fox";
languages = ["se"];
symbolsFile = ./kblayouts/fox-symbols.xkb;
};
};
};
hardware.opengl.enable = true;
services.desktopManager.plasma6.enable = true;
services.displayManager.defaultSession = "plasma";
console.useXkbConfig = true;
sound.enable = false; # let pipewire handle sound
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
hardware.bluetooth.enable = true;
users.users.xenia = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [
stilo-themes
firefox
glxinfo
];
}