vm: simplify with lightdm

This commit is contained in:
Motiejus Jakštys 2024-03-01 10:35:33 +02:00
parent 7fb02ccd7c
commit e8b624eb0c
2 changed files with 3 additions and 21 deletions

View File

@ -28,10 +28,7 @@
mj = {
stateVersion = "23.11";
timeZone = "UTC";
desktop = {
username = "nixos";
configureDM = false;
};
desktop.username = "nixos";
};
isoImage = {
@ -49,18 +46,7 @@
services = {
pcscd.enable = true;
getty.autologinUser = "nixos";
xserver = {
enable = true;
desktopManager.xfce.enable = true;
displayManager = {
lightdm.enable = true;
defaultSession = "none+awesome";
autoLogin = {
enable = true;
user = "nixos";
};
};
};
xserver.enable = true;
};
programs = {

View File

@ -11,10 +11,6 @@ in {
type = str;
default = "motiejus";
};
configureDM = lib.mkOption {
type = bool;
default = true;
};
};
config = {
@ -67,7 +63,7 @@ in {
desktopManager.xfce.enable = true;
windowManager.awesome.enable = true;
displayManager = lib.mkIf cfg.configureDM {
displayManager = {
lightdm.enable = true;
defaultSession = "none+awesome";
autoLogin = {