From 88b88d88d8e87e02a9a6e997ae4e23647677ab35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 2 Dec 2024 20:10:55 +0200 Subject: [PATCH] vm: defaultSession is xfce4 --- hosts/vm/configuration.nix | 6 +++++- modules/profiles/desktop/default.nix | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index b3fbfa6..5fcd2d7 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -1,4 +1,5 @@ { + lib, self, modulesPath, pkgs, @@ -39,8 +40,11 @@ services = { getty.autologinUser = "nixos"; - xserver.autorun = false; autorandr.enable = true; + xserver = { + autorun = false; + displayManager.defaultSession = lib.mkForce "xfce"; + }; }; security.pam.services.lightdm.text = '' diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index 111819d..735be6f 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -80,7 +80,7 @@ in }; displayManager = { - defaultSession = "none+awesome"; + defaultSession = lib.mkDefault "none+awesome"; autoLogin = { enable = true; user = username;