dots/modules/desktop/login/autologin.nix
2026-01-28 23:49:35 +11:00

17 lines
544 B
Nix

{ config, lib, pkgs, ... }:
{
# Enable display manager w/autologin
services.greetd = {
enable = true;
settings = {
initial_session = {
command = if (config.programs.niri.enable == true) then "${pkgs.niri}/bin/niri-session" else if (config.programs.hyprland.enable == true) then "${pkgs.hyprland}/bin/Hyprland" else "${pkgs.zsh}/bin/zsh";
user = "nico";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'";
};
};
};
}