Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ EOF

users.groups.greeter = { };

# Expose Sessions for sysc-greet to pick up
environment.pathsToLink = [ "/share/wayland-sessions" ];

# Configure greetd
services.greetd = {
enable = true;
Expand All @@ -171,7 +174,8 @@ EOF
"${pkgs.sway}/bin/sway -c /etc/greetd/sway-greeter-config";
user = "greeter";
};
initial_session = cfg.settings.initial_session or { };
} // lib.optionalAttrs (cfg.settings ? initial_session) {
initial_session = cfg.settings.initial_session;
};
};

Expand Down
2 changes: 2 additions & 0 deletions internal/sessions/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func LoadSessions() ([]Session, error) {
paths := []string{
"/usr/share/xsessions",
"/usr/share/wayland-sessions",
"/run/current-system/sw/share/xsessions",
"/run/current-system/sw/share/wayland-sessions",
}

for _, basePath := range paths {
Expand Down