nixos/desktop-managers: let them work when 'services.xserver.enable = false'

they can be used by remote desktop software, without X11 running locally
This commit is contained in:
volth 2019-05-13 04:12:00 +00:00
parent 1df1834dd1
commit ac6875d294
7 changed files with 11 additions and 12 deletions

View File

@ -25,7 +25,7 @@ in
};
config = mkIf (xcfg.enable && cfg.enable) {
config = mkIf cfg.enable {
environment.systemPackages = [
e.efl e.enlightenment
@ -38,10 +38,10 @@ in
pkgs.xorg.xcursorthemes
];
environment.pathsToLink = [
"/etc/enlightenment"
"/share/enlightenment"
"/share/elementary"
environment.pathsToLink = [
"/etc/enlightenment"
"/share/enlightenment"
"/share/elementary"
"/share/locale"
];

View File

@ -21,7 +21,7 @@ in
};
config = mkIf (xcfg.enable && cfg.enable) {
config = mkIf cfg.enable {
services.xserver.desktopManager.session = singleton {
name = "lumina";

View File

@ -26,7 +26,7 @@ in
};
config = mkIf (xcfg.enable && cfg.enable) {
config = mkIf cfg.enable {
services.xserver.desktopManager.session = singleton {
name = "lxqt";

View File

@ -42,7 +42,7 @@ in
};
config = mkIf (xcfg.enable && cfg.enable) {
config = mkIf cfg.enable {
services.xserver.desktopManager.session = singleton {
name = "mate";

View File

@ -10,7 +10,7 @@ in {
enable = mkEnableOption "MaXX desktop environment";
};
config = mkIf (xcfg.enable && cfg.enable) {
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.maxx ];
# there is hardcoded path in binaries

View File

@ -36,7 +36,7 @@ in
config = mkMerge [
(mkIf (xcfg.enable && cfg.enable) {
(mkIf cfg.enable {
services.xserver.desktopManager.session = singleton {
name = "plasma5";
bgSupport = true;

View File

@ -347,6 +347,7 @@ in
xkbDir = mkOption {
type = types.path;
default = "${pkgs.xkeyboard_config}/etc/X11/xkb";
description = ''
Path used for -xkbdir xserver parameter.
'';
@ -708,8 +709,6 @@ in
xorg.xf86inputevdev.out
];
services.xserver.xkbDir = mkDefault "${pkgs.xkeyboard_config}/etc/X11/xkb";
system.extraDependencies = singleton (pkgs.runCommand "xkb-validated" {
inherit (cfg) xkbModel layout xkbVariant xkbOptions;
nativeBuildInputs = [ pkgs.xkbvalidate ];