home/nixos/graphical.nix
2024-11-19 13:09:53 +01:00

70 lines
1.4 KiB
Nix

{
pkgs,
pkgs-unstable,
background-image ? "pan-wire-3.png",
use-display-manager,
...
}:
let start-plasma-shortcut = pkgs.writeScriptBin "desktop" ''
${pkgs.plasma-workspace}/libexec/plasma-dbus-run-session-if-needed ${pkgs.plasma-workspace}/bin/startplasma-wayland
'';
in
{
services.xserver = {
enable = true;
displayManager.lightdm.enable = use-display-manager;
xkb = {
layout = "fox";
options = "caps:escape";
extraLayouts.fox = {
description = "Layout suitable to be used by a fox";
languages = ["se"];
symbolsFile = ./kblayouts/fox-symbols.xkb;
};
};
};
services.desktopManager.plasma6.enable = true;
services.displayManager.defaultSession = "plasma";
services.mullvad-vpn.enable = true;
hardware.opengl.enable = true;
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;
uid = 1002;
};
environment.systemPackages = (with pkgs; [
stilo-themes
thunderbird
glxinfo
start-plasma-shortcut
remmina
libreoffice
kicad-small
]) ++ (with pkgs-unstable; [
firefox
]);
}