common: use machinevars to determine whether to use x11

This commit is contained in:
Oystein Kristoffer Tveit 2023-05-08 02:29:38 +02:00
parent 58061df4ab
commit cc03b64376
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 2 additions and 6 deletions

View File

@ -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";
};

View File

@ -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 = {