From 0c605d96845116ab4ac0fb6db83d5c0174d16442 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Fri, 26 Jun 2026 22:08:49 +0200 Subject: [PATCH] Set default session to sway --- hosts/julius-framework/default.nix | 1 + modules/boot-login.nix | 1 + modules/i3.nix | 4 ++-- modules/sway.nix | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/julius-framework/default.nix b/hosts/julius-framework/default.nix index c4e26db..d30068d 100644 --- a/hosts/julius-framework/default.nix +++ b/hosts/julius-framework/default.nix @@ -13,6 +13,7 @@ ../../modules/network-client.nix ../../modules/locale.nix ../../modules/timezone-imperatively.nix + ../../modules/lightdm-gtk.nix ../../modules/boot-login.nix ../../modules/fonts.nix ../../modules/cli-essentials.nix diff --git a/modules/boot-login.nix b/modules/boot-login.nix index 9be17c6..6768f8a 100644 --- a/modules/boot-login.nix +++ b/modules/boot-login.nix @@ -13,6 +13,7 @@ }; services = { + displayManager.defaultSession = "sway"; xserver.displayManager = { lightdm = { enable = true; diff --git a/modules/i3.nix b/modules/i3.nix index 7ba88ce..be07464 100644 --- a/modules/i3.nix +++ b/modules/i3.nix @@ -1,7 +1,7 @@ -{pkgs, ...}: { +{pkgs, lib, ...}: { # i3 related options environment.pathsToLink = ["/libexec"]; # links /libexec from derivations to /run/current-system/sw - services.displayManager.defaultSession = "none+i3"; + services.displayManager.defaultSession = lib.mkDefault "none+i3"; services.xserver = { enable = true; diff --git a/modules/sway.nix b/modules/sway.nix index e09199e..8754556 100644 --- a/modules/sway.nix +++ b/modules/sway.nix @@ -1,7 +1,10 @@ { pkgs, + lib, ... }: { + services.displayManager.defaultSession = lib.mkDefault "sway"; + programs.sway = { enable = true; wrapperFeatures = {