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

View File

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