KDE: Difference between revisions
m →Using a single diff from a remote URL: Fix formatting (command on separate line) |
Add Troubleshoot for Bluetooh |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 30: | Line 30: | ||
{{ic|sddm}} launches X11 as a root user by default. For better security, X11 can be run as a non-root user, but using Wayland is better tested and thus preferred: | {{ic|sddm}} launches X11 as a root user by default. For better security, X11 can be run as a non-root user, but using Wayland is better tested and thus preferred: | ||
< | <syntaxhighlight lang="nix"> | ||
services | # Using X11 as a non-root user | ||
</ | services.displayManager.sddm.settings.General.DisplayServer = "x11-user"; | ||
# Using Wayland (preferred) | |||
services.displayManager.sddm.settings.General.DisplayServer = "wayland"; | |||
</syntaxhighlight> | |||
=== Excluding applications from the default install === | === Excluding applications from the default install === | ||
Line 97: | Line 101: | ||
Plasma 6 runs on Wayland by default. To launch an X11 session by default: | Plasma 6 runs on Wayland by default. To launch an X11 session by default: | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.defaultSession = "plasmax11"; | ||
</ | </syntaxhighlight> | ||
==== SDDM on Wayland ==== | ==== SDDM on Wayland ==== | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.sddm.wayland.enable = true; | ||
</ | </syntaxhighlight> | ||
==== Plasma 5 ==== | ==== Plasma 5 ==== | ||
Line 111: | Line 115: | ||
Plasma 5 runs on X11 by default and it is recommended to use Wayland with Plasma 6 instead. To launch a Wayland session by default anyway: | Plasma 5 runs on X11 by default and it is recommended to use Wayland with Plasma 6 instead. To launch a Wayland session by default anyway: | ||
< | <syntaxhighlight lang="nix"> | ||
services | services.displayManager.defaultSession = "plasmawayland"; | ||
</ | </syntaxhighlight> | ||
== Troubleshooting == | == Troubleshooting == | ||
Line 131: | Line 135: | ||
[https://github.com/NixOS/nixpkgs/issues/180720 (See this issue)] | [https://github.com/NixOS/nixpkgs/issues/180720 (See this issue)] | ||
=== After Update to Plasma 6 Signal-Desktop complains about a Database Error involving kwallet5 === | |||
# Close Signal | |||
# Open ~/.config/Signal/config.json | |||
# Replace <code>"safeStorageBackend": "kwallet5"</code> with <code>"safeStorageBackend": "kwallet6"</code> (change 5 to 6) | |||
# Start Signal | |||
=== Bluetooth configuration not available === | |||
Add the following configuration (generally in harwdare-configuration.nix): | |||
<syntaxHighlight lang=nix> | |||
hardware.bluetooth.enable = true; | |||
</syntaxHighlight> | |||
This will add the following packages: | |||
<syntaxHighlight lang=nix> | |||
[ | |||
bluedevil | |||
bluez-qt | |||
pkgs.openobex | |||
pkgs.obexftp | |||
] | |||
</syntaxHighlight> | |||
== Tips and tricks == | == Tips and tricks == |