mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

Since DEs like KDE Plasma 6, GNOME and COSMIC are not designed to be X11-exclusive, putting them under `services.xserver` is misleading. In particular, GNOME defaults to Wayland these days and X11 support is going to be dropped in near future. Let’s follow Plasma and move GNOME NixOS options out of `xserver` attribute. This patch does not include any changes to X11 support itself. Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
34 lines
824 B
Nix
34 lines
824 B
Nix
# GPaste.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
###### interface
|
|
options = {
|
|
programs.gpaste = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GPaste, a clipboard manager.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = lib.mkIf config.programs.gpaste.enable {
|
|
environment.systemPackages = [ pkgs.gpaste ];
|
|
services.dbus.packages = [ pkgs.gpaste ];
|
|
systemd.packages = [ pkgs.gpaste ];
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
|
services.desktopManager.gnome.sessionPath = [ pkgs.gpaste ];
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gpaste ];
|
|
};
|
|
}
|