common: use machinevars to determine whether to use x11
This commit is contained in:
parent
58061df4ab
commit
cc03b64376
|
@ -259,7 +259,7 @@ in {
|
|||
|
||||
desktopManager = {
|
||||
xterm.enable = false;
|
||||
xfce.enable = true;
|
||||
xfce.enable = !config.machineVars.headless;
|
||||
};
|
||||
|
||||
windowManager.xmonad = {
|
||||
|
@ -271,7 +271,7 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
displayManager.lightdm.enable = true;
|
||||
displayManager.lightdm.enable = !config.machineVars.headless;
|
||||
displayManager.defaultSession = "none+xmonad";
|
||||
};
|
||||
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
./services/vscode-server.nix
|
||||
];
|
||||
|
||||
# TODO: See ../common.nix
|
||||
services.xserver.enable = false;
|
||||
services.xserver.displayManager.lightdm.enable = false;
|
||||
|
||||
machineVars = {
|
||||
headless = true;
|
||||
dataDrives = {
|
||||
|
|
Loading…
Reference in New Issue